Skip to content

Commit dfc6507

Browse files
committed
Minor UI polish for custom devices
1 parent 268a118 commit dfc6507

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

client/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@
532532
.bespoke .pl-custom-device-header {
533533
display: flex;
534534
align-items: center;
535-
justify-content: space-between;
535+
justify-content: center;
536536
gap: var(--UI-Spacing-spacing-xs);
537537
}
538538

client/src/probability-lab/ui/device-view.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ function renderCustomDevice(target, def, index, { compact = false } = {}) {
1919
nameWrap.append(icon);
2020
}
2121

22-
const name = document.createElement('span');
22+
const name = document.createElement('h2');
23+
name.className = 'heading-xxxsmall';
2324
name.textContent = def.name || 'Custom';
2425
nameWrap.append(name);
2526
header.append(nameWrap);
2627

27-
const selected = document.createElement('div');
28-
selected.className = `pl-custom-selected ${compact ? 'body-xsmall' : 'heading-xxxsmall'}`;
29-
selected.textContent = def.labels[index] ?? '—';
30-
3128
const grid = document.createElement('div');
3229
grid.className = 'pl-custom-outcomes';
3330

@@ -39,7 +36,7 @@ function renderCustomDevice(target, def, index, { compact = false } = {}) {
3936
grid.append(item);
4037
}
4138

42-
wrapper.append(header, selected, grid);
39+
wrapper.append(header, grid);
4340
target.append(wrapper);
4441
}
4542

0 commit comments

Comments
 (0)