Просмотр исходного кода

fix: breadcrumb dropdown position left aligned

David Hill 3 месяцев назад
Родитель
Сommit
9c26bb7c6c
2 измененных файлов с 1 добавлено и 1 удалено
  1. 0 1
      packages/ui/src/components/select.css
  2. 1 0
      packages/ui/src/components/select.tsx

+ 0 - 1
packages/ui/src/components/select.css

@@ -37,7 +37,6 @@
   }
 
   [data-slot="select-select-content-list"] {
-    min-height: 2rem;
     overflow-y: auto;
     max-height: 12rem;
     white-space: nowrap;

+ 1 - 0
packages/ui/src/components/select.tsx

@@ -46,6 +46,7 @@ export function Select<T>(props: SelectProps<T> & ButtonProps) {
     <Kobalte<T, { category: string; options: T[] }>
       {...others}
       data-component="select"
+      placement="bottom-start"
       value={local.current}
       options={grouped()}
       optionValue={(x) => (local.value ? local.value(x) : (x as string))}