Skip to content

Commit

Permalink
fix: increased sidebar padding-bottom to ensure the last accordion is…
Browse files Browse the repository at this point in the history
… visible, and centered accordion text for smaller screen sizes
  • Loading branch information
rajveeerr authored Dec 7, 2024
1 parent b1fe634 commit 64fb626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export function Sidebar({
<Accordion
type="multiple"
defaultValue={currentActiveContentIds.map((num) => `item-${num}`)}
className="w-full px-4 pb-24 capitalize"
className="w-full px-4 pb-40 capitalize"
>
{memoizedContent}
</Accordion>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const AccordionTrigger = React.forwardRef<
<AccordionPrimitive.Trigger
ref={ref}
className={cn(
'flex flex-1 items-center justify-between py-4 transition-all [&[data-state=open]>svg]:rotate-180',
'flex flex-1 items-center justify-between py-4 transition-all [&[data-state=open]>svg]:rotate-180 text-start',
className,
)}
{...props}
Expand Down

0 comments on commit 64fb626

Please sign in to comment.