diff --git a/client/src/components/dashboard/SettingsButton.jsx b/client/src/components/dashboard/SettingsButton.jsx index cf2a376..2782712 100644 --- a/client/src/components/dashboard/SettingsButton.jsx +++ b/client/src/components/dashboard/SettingsButton.jsx @@ -10,7 +10,8 @@ import { Badge, Menu, HStack, - useRecipe, useSlotRecipe + useRecipe, + useSlotRecipe } from "@chakra-ui/react"; import {Settings, Plus, LayoutGrid, Move, Save, X} from 'lucide-react'; import {useDashboardStore} from "../../store/useDashboardStore.jsx"; @@ -29,7 +30,7 @@ export function SettingsButton() { // Pull the glass container styles for the dropdown const panelRecipe = useSlotRecipe({key: "glassPanel"}); - const panelStyles = panelRecipe({ layout: "dropdown" }); + const panelStyles = panelRecipe({layout: "dropdown"}); const [isLibraryOpen, setIsLibraryOpen] = useState(false); @@ -81,23 +82,23 @@ export function SettingsButton() { {isEditing ? ( <> - + Save Layout - + Discard Changes ) : ( - + Edit Layout )} - setIsLibraryOpen(true)} cursor="pointer" _hover={{fontWeight: "semibold"}}> + setIsLibraryOpen(true)} cursor="pointer" _hover={{WebkitTextStroke: "0.5px currentColor"}}> Widget Library @@ -105,7 +106,14 @@ export function SettingsButton() { {/* THE WIDGET LIBRARY MODAL (Controlled by isLibraryOpen) */} - setIsLibraryOpen(e.open)} size="xl" placement="center"> + setIsLibraryOpen(e.open)} + size="xl" + placement="center" + closeOnInteractOutside={true} + closeOnEscapeKeyDown={true} + >