Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ui): remove old cancerous dropdown classes (#3544)

Fake-Userc644b154227d
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
index 229e09e432..a2b4a8efd4 100644
--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
@@ -415,14 +415,16 @@ const SearchableFilterSubmenu = (props: {
</Dropdown.SubTrigger>
<Dropdown.SubContent class="w-65 max-w-[90vw]">
- <SearchableMultiSelectInline
- options={props.options}
- activeIds={props.activeIds}
- onChange={props.onChange}
- placeholder={props.placeholder}
- inputRef={setInputRef}
- onRequestClose={() => setIsOpen(false)}
- />
+ <Dropdown.Group class="p-0 gap-0">
+ <SearchableMultiSelectInline
+ onRequestClose={() => setIsOpen(false)}
+ placeholder={props.placeholder}
+ activeIds={props.activeIds}
+ onChange={props.onChange}
+ options={props.options}
+ inputRef={setInputRef}
+ />
+ </Dropdown.Group>
</Dropdown.SubContent>
</Dropdown.Sub>
);
@@ -441,7 +443,7 @@ function SingleValueSubmenu<T>(props: {
<span class="text-ink">{props.label}</span>
<CaretRightIcon class="size-3 text-ink-muted" />
</Dropdown.SubTrigger>
- <Dropdown.SubContent class="min-w-40">
+ <Dropdown.SubContent>
<Dropdown.Group>
<For each={props.options}>
{(option) => {
@@ -635,7 +637,7 @@ const SearchIndexSubRow = (props: {
<SearchIndexRowLabel option={props.option} active={props.active} />
<CaretRightIcon class="size-3 text-ink-muted" />
</Dropdown.SubTrigger>
- <Dropdown.SubContent class="min-w-45">
+ <Dropdown.SubContent>
<Dropdown.Group>{props.children}</Dropdown.Group>
</Dropdown.SubContent>
</Dropdown.Sub>
@@ -808,7 +810,7 @@ export const UnifiedFilterDropdown = () => {
<CaretRightIcon class="size-3 text-ink-muted" />
</Dropdown.SubTrigger>
- <Dropdown.SubContent class="min-w-40">
+ <Dropdown.SubContent>
<Dropdown.Group>
<For each={category.options}>
{(option) => {