Skip to content

Commit

Permalink
use sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
madeindjs committed Nov 25, 2024
1 parent 8c275d9 commit a80a890
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/src/builder/BuilderSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import {
ref,
watch,
} from "vue";
import { useFloating } from "@floating-ui/vue";
import { useFloating, autoPlacement } from "@floating-ui/vue";
import type { WdsDropdownMenuOption } from "@/wds/WdsDropdownMenu.vue";
import { useFocusWithin } from "@/composables/useFocusWithin";
Expand Down Expand Up @@ -77,6 +77,7 @@ const { floatingStyles, update: updateFloatingStyle } = useFloating(
dropdown,
{
placement: "bottom",
middleware: [autoPlacement()],
},
);
Expand Down
5 changes: 5 additions & 0 deletions src/ui/src/wds/WdsDropdownMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ watch(searchTerm, () => emits("search", searchTerm.value));
padding: 8px 10px;
box-shadow: 0px 1px 8px 0px #bfcbff40;
box-sizing: border-box;
}
.WdsDropdownMenu:has(.WdsDropdownMenu__search) {
padding-top: 0px;
}
.WdsDropdownMenu__item {
Expand Down Expand Up @@ -150,6 +154,7 @@ watch(searchTerm, () => emits("search", searchTerm.value));
gap: 4px;
padding: 8px;
padding-top: 16px;
border: 1px solid transparent;
color: currentcolor;
Expand Down

0 comments on commit a80a890

Please sign in to comment.