Skip to content

Commit

Permalink
Merge pull request #313 from briefercloud/better-sidebar
Browse files Browse the repository at this point in the history
better sidebar size
  • Loading branch information
lucasfcosta authored Jan 9, 2025
2 parents 57de233 + a96b444 commit 855be36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export default function Layout({
/>

{isSideBarOpen && (
<div className="flex flex-col h-full bg-ceramic-50/60 min-w-[33%] max-w-[33%] lg:min-w-[25%] lg:max-w-[25%] overflow-auto border-r border-gray-200">
<div className="flex flex-col h-full bg-ceramic-50/60 min-w-[360px] max-w-[360px] 3xl:min-w-[400px] 3xl:max-w-[400px] overflow-auto border-r border-gray-200">
<div className="flex items-center justify-between pt-0.5 pl-4 pr-5">
<div className="font-trap tracking-tight text-2xl antialiased text-gray-800 flex items-center gap-x-1 scale-90">
<SparklesIcon className="h-4 w-4" />
Expand Down Expand Up @@ -476,7 +476,7 @@ export default function Layout({
className={clsx(
`flex flex-col h-screen w-full ${syne.className} relative`,
isSideBarOpen
? `md:max-w-[67%] lg:max-w-[75%]`
? `max-w-[calc(100%-360px)] 3xl:max-w-[calc(100%-400px)]`
: `md:max-w-[100%] lg:max-w-[100%]`
)}
>
Expand Down
3 changes: 3 additions & 0 deletions apps/web/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const config: Config = {
},
theme: {
extend: {
screens: {
'3xl': '1920px',
},
transitionProperty: {
mw: 'max-width',
m: 'margin',
Expand Down

0 comments on commit 855be36

Please sign in to comment.