Skip to content

Commit

Permalink
fix: #907 sidebar broken in playground (#1066)
Browse files Browse the repository at this point in the history
Co-authored-by: Cody's Dad <[email protected]>%0ACo-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>%0ACo-authored-by: acethecreator <[email protected]>
  • Loading branch information
surajTade and AceTheCreator authored Nov 4, 2024
1 parent bd54fb2 commit 0247f8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/src/containers/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const Sidebar: React.FunctionComponent = () => {
>
<div
className={`${
showSidebar ? 'w-full' : ''
showSidebar ? 'sidebar--wrapper' : ''
} block fixed max-h-screen h-full font-sans px-4 pt-8 pb-16 overflow-y-auto bg-gray-200`}
>
<div className="sidebar--content">
Expand Down
9 changes: 7 additions & 2 deletions library/src/styles/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@
@apply lg:relative lg:block lg:w-64 lg:h-auto;
}

.container\:xl .sidebar--wrapper{
@apply xl:w-full;
@apply sm:w-full;
}

.container\:base .sidebar--content {
@apply lg:w-56;
}

.container\:xl .sidebar--content {
/*.container\:xl .sidebar--content {
@apply absolute;
left: 50%;
transform: translate(-50%, 0);
}
}*/

.container\:base .panel-item {
@apply 2xl:flex;
Expand Down

0 comments on commit 0247f8a

Please sign in to comment.