Skip to content

Commit 0247f8a

Browse files
fix: #907 sidebar broken in playground (#1066)
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]>
1 parent bd54fb2 commit 0247f8a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

library/src/containers/Sidebar/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const Sidebar: React.FunctionComponent = () => {
119119
>
120120
<div
121121
className={`${
122-
showSidebar ? 'w-full' : ''
122+
showSidebar ? 'sidebar--wrapper' : ''
123123
} block fixed max-h-screen h-full font-sans px-4 pt-8 pb-16 overflow-y-auto bg-gray-200`}
124124
>
125125
<div className="sidebar--content">

library/src/styles/default.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@
1313
@apply lg:relative lg:block lg:w-64 lg:h-auto;
1414
}
1515

16+
.container\:xl .sidebar--wrapper{
17+
@apply xl:w-full;
18+
@apply sm:w-full;
19+
}
20+
1621
.container\:base .sidebar--content {
1722
@apply lg:w-56;
1823
}
1924

20-
.container\:xl .sidebar--content {
25+
/*.container\:xl .sidebar--content {
2126
@apply absolute;
2227
left: 50%;
2328
transform: translate(-50%, 0);
24-
}
29+
}*/
2530

2631
.container\:base .panel-item {
2732
@apply 2xl:flex;

0 commit comments

Comments
 (0)