Skip to content

Commit

Permalink
added sidebar utility
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanth7890 committed Mar 11, 2024
1 parent 8918949 commit 21c70fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function Sidebar({

return (
<div
className={`overflow-y-scroll h-[${(window.innerHeight - 64)}px] w-[300px] min-w-[133px] bg-gray-50 dark:bg-gray-800 cursor-pointer sticky top-[64px] self-start w-84`}
className="overflow-y-scroll h-sidebar w-[300px] min-w-[133px] bg-gray-50 dark:bg-gray-800 cursor-pointer sticky top-[64px] self-start w-84"
>
<div className="flex">
{/* <ToggleButton
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ module.exports = {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
height: {
sidebar: 'calc(100vh - 64px)',
},
},
},
plugins: [require('tailwindcss-animate')],
Expand Down

0 comments on commit 21c70fe

Please sign in to comment.