diff --git a/src/components/Sidebar/SidebarDrop.tsx b/src/components/Sidebar/SidebarDrop.tsx index 0ae44c3..ed17243 100644 --- a/src/components/Sidebar/SidebarDrop.tsx +++ b/src/components/Sidebar/SidebarDrop.tsx @@ -30,7 +30,7 @@ const SidebarDrop = ({ label, icon: Icon, as = "a", options = [] }: DropProps) = return ( <> {!isOpen && Icon && ( -
+
@@ -46,7 +46,7 @@ const SidebarDrop = ({ label, icon: Icon, as = "a", options = [] }: DropProps) = isDropdownOpen ? "peer-focus:visible" : "" }`} > -
+
{label}
diff --git a/src/components/Sidebar/SidebarGroup.tsx b/src/components/Sidebar/SidebarGroup.tsx index 4f580f3..a3b3c92 100644 --- a/src/components/Sidebar/SidebarGroup.tsx +++ b/src/components/Sidebar/SidebarGroup.tsx @@ -1,12 +1,14 @@ import { ComponentProps, PropsWithChildren } from "react"; import { twMerge } from "tailwind-merge"; - export interface SidebarItemGroupProps extends PropsWithChildren, ComponentProps<"div"> {} const SidebarItemGroup = ({ children, className, ...rest }: SidebarItemGroupProps) => { return (
{children} diff --git a/src/components/Sidebar/SidebarItem.tsx b/src/components/Sidebar/SidebarItem.tsx index e7b47fa..df4660c 100644 --- a/src/components/Sidebar/SidebarItem.tsx +++ b/src/components/Sidebar/SidebarItem.tsx @@ -18,7 +18,7 @@ export const SidebarIconVariants = cva( ); export const SidebarItemVariants = cva( - "flex h-12 w-full items-center gap-2 rounded-md px-2 text-md font-semibold", + "flex h-12 w-full items-center gap-2 whitespace-nowrap rounded-md px-2 text-md font-semibold", ); export interface ItemProps extends IItemProps, Omit, "href"> {} @@ -36,7 +36,7 @@ const SidebarItem = ({ label, as = "a", icon: Icon, href, active }: ItemProps) = {!isOpen && Icon && ( { OnClick(); }} @@ -55,6 +55,7 @@ const SidebarItem = ({ label, as = "a", icon: Icon, href, active }: ItemProps) = onClick={() => { OnClick(); }} + className="flex h-12 w-fit justify-center" >
{ const { isOpen, setIsOpen } = useContext(SidebarContext); - const style = isOpen ? "w-72" : "w-20 max-md:w-0 max-md:absolute z-10"; + const style = isOpen ? "w-72" : "w-24 max-md:w-0 max-md:absolute z-10"; return (