Skip to content

Commit

Permalink
Decrease sidebar widths
Browse files Browse the repository at this point in the history
  • Loading branch information
albingroen committed Feb 21, 2023
1 parent b0a56fe commit c4193eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Sidebar({
extra,
}: SidebarProps) {
return (
<aside className="flex flex-col w-full max-w-xs h-screen bg-white dark:bg-neutral-900 border-r dark:border-neutral-700/60">
<aside className="flex flex-col w-full max-w-[300px] h-screen bg-white dark:bg-neutral-900 border-r dark:border-neutral-700/60">
<div className="flex-1 w-full overflow-y-auto">{children}</div>

<Stack direction="vertical" spacing="small" className="w-full p-5">
Expand Down
2 changes: 1 addition & 1 deletion pages/schemas/[schemaId]/models/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ const Model = () => {
</Droppable>
</DragDropContext>

<div className="flex-1 max-w-sm model-fields overflow-y-auto bg-gray-200 dark:bg-neutral-900 rounded-lg p-4 flex flex-col space-y-4">
<div className="flex-1 max-w-xs model-fields overflow-y-auto bg-gray-200 dark:bg-neutral-900 rounded-lg p-4 flex flex-col space-y-4">
<h2 className="font-medium text-xl">Add field</h2>

<Stack direction="vertical">
Expand Down
2 changes: 1 addition & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@
}

.model-fields {
height: calc(100vh - 142px);
height: calc(100vh - 136px);
}

1 comment on commit c4193eb

@vercel
Copy link

@vercel vercel bot commented on c4193eb Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.