Преглед изворни кода

fix: fix width and padding on agent select

- conditionally hide the role=presentation element because it was adding extra gap before the first agent
David Hill пре 2 месеци
родитељ
комит
d2217bb825
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      packages/ui/src/components/select.css

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

@@ -47,11 +47,14 @@
     overflow-x: hidden;
     display: flex;
     flex-direction: column;
-    gap: 2px;
 
     &:focus {
       outline: none;
     }
+
+    > *:not([role="presentation"]) + *:not([role="presentation"]) {
+      margin-top: 2px;
+    }
   }
 
   /* [data-slot="select-section"] { */
@@ -62,6 +65,7 @@
     display: flex;
     align-items: center;
     padding: 0 6px 0 6px;
+    gap: 12px;
     border-radius: var(--radius-sm);
 
     /* text-12-medium */