From 35f9fa6e25301041860cbd5b93697a3f97fcb99c Mon Sep 17 00:00:00 2001 From: Elizabet Oliveira Date: Fri, 29 May 2026 13:09:43 +0100 Subject: [PATCH] refactor(source-picker): glue kebab to the source Select as a split-button chip The kebab `SourceManagementMenu` was rendered as a separate sibling of the Select with a 4px gap, so it read as "Select plus an unrelated icon button" rather than "actions on this source." Restyle the pair as a single split-button chip: the input's right corners are squared, the kebab's left corners are squared, the kebab stretches to match the input's height, and its left border overlaps the input's right border by 1px so the two share a single seam. Override Mantine v7 corners via `--input-radius` / `--ai-radius` (the canonical override path) instead of fighting class-level `border-radius` against `@layer mantine`. Also normalize the kebab tooltip to the app-wide convention (`withArrow`, default color) so it matches `Filter Settings` and other gray-tinted tooltips across the app. When `hasMenu` is false (no handlers wired, e.g. `DBTableSelect` callers), the `[data-with-menu]` attribute is omitted and the original side-by-side layout is preserved. Co-authored-by: Cursor --- packages/app/src/components/SourceSelect.tsx | 4 +- .../styles/SourceSelectControlled.module.scss | 46 ++++++++++++++++--- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/packages/app/src/components/SourceSelect.tsx b/packages/app/src/components/SourceSelect.tsx index 4766493636..d00e23e656 100644 --- a/packages/app/src/components/SourceSelect.tsx +++ b/packages/app/src/components/SourceSelect.tsx @@ -129,7 +129,7 @@ export const SourceManagementMenu = ({ return ( - +