Skip to content

Commit

Permalink
fix:asyncapi#907 sidebar broken in playground
Browse files Browse the repository at this point in the history
  • Loading branch information
kash2104 committed Oct 8, 2024
1 parent d87fd60 commit 642103d
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -122,7 +122,7 @@ export const Sidebar: React.FunctionComponent = () => {
showSidebar ? 'w-full' : ''
} 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">
<div className="sidebar--wrapper">
<div>
{logo ? (
// eslint-disable-next-line @next/next/no-img-element
Expand Down
8 changes: 6 additions & 2 deletions library/src/styles/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@
@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 642103d

Please sign in to comment.