Skip to content

Commit

Permalink
Ajustes de estilo na barra lateral (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ftarganski authored Mar 18, 2024
1 parent a81091e commit fd9cbe2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/src/library/Sidebar/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const SidebarBody: FC<SidebarBodyProps> = ({
return (
<div
className={cn(
'flex h-full w-full flex-col justify-between gap-2 px-2 py-4',
'flex h-full w-full flex-col justify-between gap-2 py-4',
className,
)}
{...rest}
Expand Down
2 changes: 1 addition & 1 deletion package/src/library/Sidebar/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const SidebarButton: FC<SidebarButtonProps> = ({
return (
<button
className={cn(
'flex w-auto flex-row items-center rounded-lg px-2 py-2 transition-colors hover:bg-primary hover:text-gray-100 [&:hover_svg]:text-gray-100 [&_svg]:text-primary',
'flex w-full flex-row items-center rounded-lg px-2 py-2 transition-colors hover:bg-primary hover:text-gray-100 [&:hover_svg]:text-gray-100 [&_svg]:text-primary',
className,
)}
{...rest}
Expand Down
2 changes: 1 addition & 1 deletion package/src/library/Sidebar/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SidebarRoot: FC<SidebarRootProps> = ({
<aside
className={cn(
'sticky top-0 flex h-screen flex-col justify-between border-r border-gray-300 transition-all duration-300 [&_*]:overflow-hidden [&_*]:text-ellipsis [&_*]:whitespace-nowrap',
expanded ? 'w-56 px-4' : '[[&_span]:not(img)]:hidden w-14 pl-2',
expanded ? 'w-56 px-4' : '[[&_span]:not(img)]:hidden w-14 px-2',
className,
)}
{...rest}
Expand Down

0 comments on commit fd9cbe2

Please sign in to comment.