Skip to content

Commit

Permalink
fix: sidebar's responsivity
Browse files Browse the repository at this point in the history
  • Loading branch information
ronymmoura committed Dec 28, 2024
1 parent 941f5a1 commit bd81385
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/kamalion-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kamalion/ui",
"version": "1.3.2",
"version": "1.3.3",
"type": "module",
"private": false,
"repository": {
Expand Down
11 changes: 9 additions & 2 deletions packages/kamalion-ui/src/components/Sidebar/SidebarFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import { ReactNode } from "react";
import { cn } from "../../util";

interface SidebarFooterProps {
children: ReactNode;
className?: string;
}

export function SidebarFooter({ children }: SidebarFooterProps) {
export function SidebarFooter({ children, className }: SidebarFooterProps) {
return (
<div className="flex items-center border-t border-slate-800 bg-[--sidebar-footer-background] space-x-2 px-10 h-16">
<div
className={cn(
"flex items-center border-t border-slate-800 bg-[--sidebar-footer-background] space-x-2 px-10 h-16",
className,
)}
>
{children}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export function SidebarHeader({ children, className }: SidebarHeaderProps) {
className,
)}
>
<div>{children}</div>
{children}

<div className="hover:cursor-pointer md:hidden" onClick={toggleNav}>
<IoClose size={24} />
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export declare const buttonVariants: (props?: ({
variant?: "default" | "accent" | "success" | "danger" | "ghost" | null | undefined;
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ReactNode } from "react";
interface SidebarFooterProps {
children: ReactNode;
className?: string;
}
export declare function SidebarFooter({ children }: SidebarFooterProps): import("react/jsx-runtime").JSX.Element;
export declare function SidebarFooter({ children, className }: SidebarFooterProps): import("react/jsx-runtime").JSX.Element;
export {};

0 comments on commit bd81385

Please sign in to comment.