From 992d552e2aea3ab1add7a6d350634cc40f5dbe87 Mon Sep 17 00:00:00 2001 From: waleed Date: Sun, 14 Jun 2026 09:57:02 -0700 Subject: [PATCH] fix(settings): align general appearance dropdowns to a uniform width MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Theme/Snap-to-grid (ChipSelect) hugged their content (~90px) while Timezone (ChipCombobox) was pinned to 260px, so the three read as a ragged column. Give all three a shared 240px trigger via fullWidth + a common width wrapper so they align as one column; menus match their triggers. No behavioral change — timezone keeps search, options and handlers are untouched. --- .../settings/components/general/general.tsx | 71 +++++++++++-------- 1 file changed, 42 insertions(+), 29 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/settings/components/general/general.tsx b/apps/sim/app/workspace/[workspaceId]/settings/components/general/general.tsx index 647b021a43..bce32a2995 100644 --- a/apps/sim/app/workspace/[workspaceId]/settings/components/general/general.tsx +++ b/apps/sim/app/workspace/[workspaceId]/settings/components/general/general.tsx @@ -45,6 +45,13 @@ const logger = createLogger('General') /** Human-friendly timezone options for the picker, common zones first. */ const TIMEZONE_OPTIONS = getTimezoneOptions() +/** + * Shared trigger width for the three appearance dropdowns (Theme, Timezone, Snap + * to grid) so they line up as one column instead of three differently-sized + * pills. Wide enough for the longest common timezone label. + */ +const DROPDOWN_TRIGGER_CLASS = 'w-[240px] flex-shrink-0' + /** * Extracts initials from a user's name. * @param name - The user's full name @@ -401,26 +408,29 @@ export function General() {
- +
+ +
-
+
- +
+ +