Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion site/src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ interface SidebarProps {
}

export const Sidebar: FC<SidebarProps> = ({ className, children }) => {
return <nav className={cn("w-60 flex-shrink-0", className)}>{children}</nav>;
return (
<nav className={cn("w-full lg:w-60 flex-shrink-0", className)}>
{children}
</nav>
);
};

interface SidebarHeaderProps {
Expand Down
6 changes: 3 additions & 3 deletions site/src/modules/management/DeploymentSettingsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ const DeploymentSettingsLayout: FC = () => {
</BreadcrumbList>
</Breadcrumb>
<div className="h-px border-none bg-border" />
<section className="px-10 max-w-screen-2xl mx-auto">
<div className="flex flex-row gap-28 py-10">
<section className="px-4 sm:px-6 lg:px-10 max-w-screen-2xl mx-auto">
<div className="flex flex-col gap-8 py-6 lg:flex-row lg:gap-28 lg:py-10">
<DeploymentSidebar />
<div className="grow">
<div className="grow min-w-0">
<Suspense fallback={<Loader />}>
<Outlet />
</Suspense>
Expand Down
6 changes: 3 additions & 3 deletions site/src/modules/management/OrganizationSidebarLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { OrganizationSidebar } from "./OrganizationSidebar";

const OrganizationSidebarLayout: FC = () => {
return (
<section className="px-10 max-w-screen-2xl mx-auto">
<div className="flex flex-row gap-28 py-10">
<section className="px-4 sm:px-6 lg:px-10 max-w-screen-2xl mx-auto">
<div className="flex flex-col gap-8 py-6 lg:flex-row lg:gap-28 lg:py-10">
<OrganizationSidebar />
<div className="grow">
<div className="grow min-w-0">
<Suspense fallback={<Loader />}>
<Outlet />
</Suspense>
Expand Down
6 changes: 3 additions & 3 deletions site/src/pages/AISettingsPage/AISettingsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { AISettingsSidebar } from "#/modules/management/AISettingsSidebar";

const AISettingsLayout = () => {
return (
<section className="px-10 w-full max-w-screen-2xl mx-auto">
<div className="flex flex-row gap-28 py-10">
<section className="px-4 sm:px-6 lg:px-10 w-full max-w-screen-2xl mx-auto">
<div className="flex flex-col gap-8 py-6 lg:flex-row lg:gap-28 lg:py-10">
<AISettingsSidebar />
<div className="grow">
<div className="grow min-w-0">
<Suspense fallback={<Loader />}>
<Outlet />
</Suspense>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const MCPServersPageView: FC<MCPServersPageViewProps> = ({
<ErrorAlert error={error} />
</div>
)}
<Table className="table-fixed" aria-label="MCP servers">
<Table className="table-fixed min-w-[640px]" aria-label="MCP servers">
<TableHeader>
<TableRow>
<TableHead className="w-1/2">Name</TableHead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const TemplateSettingsLayout: FC = () => {
<>
<title>{pageTitle(templateName, "Settings")}</title>

<Margins>
<div className="flex flex-row gap-20 py-12">
<Margins className="max-sm:!px-4">
<div className="flex flex-col gap-8 py-6 lg:flex-row lg:gap-20 lg:py-12">
{templateQuery.isError || permissionsQuery.isError ? (
<ErrorAlert error={templateQuery.error} />
) : (
Expand All @@ -65,7 +65,7 @@ export const TemplateSettingsLayout: FC = () => {
>
<Sidebar template={templateQuery.data} />
<Suspense fallback={<Loader />}>
<div className="w-full">
<div className="w-full min-w-0">
<Outlet />
</div>
</Suspense>
Expand Down
6 changes: 3 additions & 3 deletions site/src/pages/UserSettingsPage/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const Layout: FC = () => {
</BreadcrumbList>
</Breadcrumb>
<div className="h-px border-none bg-border" />
<section className="px-10 max-w-screen-2xl mx-auto">
<div className="flex flex-row gap-28 py-10">
<section className="px-4 sm:px-6 lg:px-10 max-w-screen-2xl mx-auto">
<div className="flex flex-col gap-8 py-6 lg:flex-row lg:gap-28 lg:py-10">
<Sidebar user={me} />
<div className="grow">
<div className="grow min-w-0">
<Suspense fallback={<Loader />}>
<Outlet />
</Suspense>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const WorkspaceSettingsLayout: FC = () => {
<>
<title>{pageTitle(workspaceName, "Settings")}</title>

<Margins>
<div className="flex flex-row gap-20 py-12">
<Margins className="max-sm:!px-4">
<div className="flex flex-col gap-8 py-6 lg:flex-row lg:gap-20 lg:py-12">
{error ? (
<ErrorAlert error={error} />
) : (
Expand All @@ -50,7 +50,7 @@ export const WorkspaceSettingsLayout: FC = () => {
>
<Sidebar />
<Suspense fallback={<Loader />}>
<div className="w-full">
<div className="w-full min-w-0">
<Outlet />
</div>
</Suspense>
Expand Down
Loading