Skip to content

Commit

Permalink
[front] - refactor: standardize container width and adjust overflow b…
Browse files Browse the repository at this point in the history
…ehavior

- Apply consistent maximum width to main content containers across various components for a unified look
- Set overflow behavior on assistant list to only clip in the y-direction for better content handling
  • Loading branch information
Jules committed Jul 27, 2024
1 parent 3a14f3c commit 51f929f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion front/components/assistant/Sharing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ function SlackIntegrationDrawer({
hasChanged={false}
variant="side-sm"
>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical gap="lg" align="stretch">
<div className="flex flex-col gap-y-2">
<div className="grow text-sm font-medium text-element-800">
Expand Down
4 changes: 2 additions & 2 deletions front/components/sparkle/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ export default function AppLayout({

<div
className={classNames(
"flex h-screen w-full flex-col overflow-y-auto",
isWideMode ? "items-center" : "max-w-4xl px-6"
"flex h-screen w-full flex-col items-center overflow-y-auto",
isWideMode ? "" : "px-6"
)}
>
{loaded && children}
Expand Down
2 changes: 1 addition & 1 deletion front/pages/w/[wId]/a/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ export default function Developers({
current: "developers",
})}
>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical gap="xl" align="stretch">
<Page.Header
title="Developers Tools"
Expand Down
4 changes: 2 additions & 2 deletions front/pages/w/[wId]/builder/assistants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default function WorkspaceAssistants({
current: "workspace_assistants",
})}
>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<AssistantDetails
owner={owner}
assistantId={showDetails?.sId || null}
Expand Down Expand Up @@ -248,7 +248,7 @@ export default function WorkspaceAssistants({
</Link>
</Button.List>
</div>
<div className="flex flex-col gap-4 pt-3">
<div className="flex flex-col gap-4 overflow-y-clip pt-3">
<div className="flex flex-row gap-2">
<Tab
tabs={tabs}
Expand Down
4 changes: 2 additions & 2 deletions front/pages/w/[wId]/builder/data-sources/managed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function ConfirmationModal({
hasChanged={false}
variant="side-sm"
>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical gap="lg" align="stretch">
<div className="flex flex-col gap-y-2">
<div className="grow text-sm font-medium text-element-800">
Expand Down Expand Up @@ -576,7 +576,7 @@ export default function DataSourcesView({
}}
/>
)}
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical gap="xl" align="stretch">
<Page.Header
title="Connections"
Expand Down
2 changes: 1 addition & 1 deletion front/pages/w/[wId]/builder/data-sources/public-urls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default function DataSourcesView({
current: "data_sources_url",
})}
>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical gap="xl" align="stretch">
<Page.Header
title="Websites"
Expand Down
2 changes: 1 addition & 1 deletion front/pages/w/[wId]/builder/data-sources/static.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function DataSourcesView({
current: "data_sources_static",
})}
>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical gap="xl" align="stretch">
<Page.Header
title="Folders"
Expand Down
2 changes: 1 addition & 1 deletion front/pages/w/[wId]/members/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function WorkspaceAdmin({
gaTrackingId={gaTrackingId}
subNavigation={subNavigationAdmin({ owner, current: "members" })}
>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical gap="xl" align="stretch">
<Page.Header
title="Member Management"
Expand Down
2 changes: 1 addition & 1 deletion front/pages/w/[wId]/subscription/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default function Subscription({
}}
initialEmail={user.email}
/>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical gap="xl" align="stretch">
<Page.Header
title="Subscription"
Expand Down
2 changes: 1 addition & 1 deletion front/pages/w/[wId]/workspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default function WorkspaceAdmin({
gaTrackingId={gaTrackingId}
subNavigation={subNavigationAdmin({ owner, current: "workspace" })}
>
<div className="pt-8">
<div className="w-full max-w-4xl pt-8">
<Page.Vertical align="stretch" gap="xl">
<Page.Header
title="Workspace"
Expand Down

0 comments on commit 51f929f

Please sign in to comment.