Skip to content

Build your personal knowledge base with Trilium Notes

fix(launch_bar): wrong position of dropdown

Elian Doran3a8dcae53a87
diff --git a/apps/client/src/widgets/launch_bar/launch_bar_widgets.tsx b/apps/client/src/widgets/launch_bar/launch_bar_widgets.tsx
index 68c68868f0..f8dbf25049 100644
--- a/apps/client/src/widgets/launch_bar/launch_bar_widgets.tsx
+++ b/apps/client/src/widgets/launch_bar/launch_bar_widgets.tsx
@@ -26,7 +26,7 @@ export function LaunchBarActionButton(props: Omit<ActionButtonProps, "className"
)
}
-export function LaunchBarDropdownButton({ children, icon, ...props }: Pick<DropdownProps, "title" | "children" | "onShown" | "dropdownOptions" | "dropdownRef"> & { icon: string }) {
+export function LaunchBarDropdownButton({ children, icon, dropdownOptions, ...props }: Pick<DropdownProps, "title" | "children" | "onShown" | "dropdownOptions" | "dropdownRef"> & { icon: string }) {
const { isHorizontalLayout } = useContext(LaunchBarContext);
return (
@@ -37,6 +37,12 @@ export function LaunchBarDropdownButton({ children, icon, ...props }: Pick<Dropd
text={<Icon icon={icon} />}
titlePosition={isHorizontalLayout ? "bottom" : "right"}
titleOptions={{ animation: false }}
+ dropdownOptions={{
+ ...dropdownOptions,
+ popperConfig: {
+ placement: isHorizontalLayout ? "bottom" : "right"
+ }
+ }}
{...props}
>{children}</Dropdown>
)