Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(settings): compact dropdown triggers

vastsaeb3b37fde407
diff --git a/apps/desktop/src/styles/settings.css b/apps/desktop/src/styles/settings.css
index 7d95e7719..e751744e6 100644
--- a/apps/desktop/src/styles/settings.css
+++ b/apps/desktop/src/styles/settings.css
@@ -1612,14 +1612,14 @@
.settings-font-trigger {
display: inline-flex;
align-items: center;
- gap: 8px;
+ gap: 6px;
width: max-content;
max-width: 100%;
min-width: 0;
- /* One closed-trigger height for every picker: the metric a text input in the
- same Settings row resolves to, so the two never disagree (see the token). */
- height: var(--ds-field-height);
- padding: 0 10px 0 12px;
+ /* Compact row pickers have less vertical and horizontal chrome; stretched
+ form selects below keep the input-aligned field metric. */
+ height: var(--ds-settings-picker-height);
+ padding: 0 10px;
border-radius: var(--radius-full);
background: var(--ds-raised);
box-shadow: var(--ds-raised-shadow);
diff --git a/apps/desktop/src/styles/tokens.css b/apps/desktop/src/styles/tokens.css
index 574a54548..744214261 100644
--- a/apps/desktop/src/styles/tokens.css
+++ b/apps/desktop/src/styles/tokens.css
@@ -169,6 +169,9 @@
subagent sheet's row body, a compact menu search — and the import toolbar,
whose row holds small buttons and no field, declare their own metric. */
--ds-field-height: calc(18px + var(--text-base) * var(--leading-body));
+ /* Compact closed picker triggers in Appearance and Settings rows. Full-width
+ form selects keep the larger field metric above. */
+ --ds-settings-picker-height: calc(14px + var(--text-sm-plus) * var(--leading-body));
/* Work-panel controls share these geometry tokens so the header's safe lane
cannot drift away from the viewport-fixed toggle. */
--ds-work-panel-toggle-size: 28px;
diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.md
index be2eecf48..71a3f6b1a 100644
--- a/docs/spec/04-ux/07-ui-design-system.md
+++ b/docs/spec/04-ux/07-ui-design-system.md
@@ -1319,6 +1319,10 @@ Every dropdown / option-list in Settings **must** use `SettingsMenuSelect`
instead of the native `Select` (`<select>`) component. Native `Select`
is reserved for non-Settings contexts where OS-level rendering is acceptable.
+Appearance pickers and compact Settings-row triggers use the scaled
+`--ds-settings-picker-height` metric. Full-width `SettingsMenuSelect` controls
+keep `--ds-field-height` so they align with adjacent form inputs.
+
## 12. State patterns