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
2 changes: 1 addition & 1 deletion app/components/CapacityBars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const CapacityBars = ({
allocatedLabel: string
}) => {
return (
<div className="1000:flex-row mb-12 flex min-w-min flex-col gap-3">
<div className="1000:flex-row flex min-w-min flex-col gap-3">
<CapacityBar
icon={<Cpu16Icon />}
title="CPU"
Expand Down
4 changes: 2 additions & 2 deletions app/pages/SiloUtilizationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ export default function SiloUtilizationPage() {
allocatedLabel="Quota"
/>

<Divider className="my-6" />
<Divider className="my-8" />

<div className="mt-8 mb-3 flex flex-wrap justify-between gap-3">
<div className="mb-3 flex flex-wrap justify-between gap-3">
<div className="flex gap-2">
{intervalPicker}

Expand Down
2 changes: 1 addition & 1 deletion app/pages/project/affinity/AntiAffinityGroupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default function AntiAffinityPage() {
<PropertiesTable.Row label="Members">{membersCount}</PropertiesTable.Row>
<PropertiesTable.IdRow id={id} />
</PropertiesTable>
<Divider className="mb-10" />
<Divider className="my-8" />
<CardBlock>
<CardBlock.Header
title="Members"
Expand Down
37 changes: 20 additions & 17 deletions app/pages/project/vpcs/RouterPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ import { addToast } from '~/stores/toast'
import { TypeValueCell } from '~/table/cells/TypeValueCell'
import { useColsWithActions, type MenuAction } from '~/table/columns/action-col'
import { useQueryTable } from '~/table/QueryTable'
import { CardBlock } from '~/ui/lib/CardBlock'
import { CreateButton, CreateLink } from '~/ui/lib/CreateButton'
import { Divider } from '~/ui/lib/Divider'
import { EmptyMessage } from '~/ui/lib/EmptyMessage'
import { PageHeader, PageTitle } from '~/ui/lib/PageHeader'
import { PropertiesTable } from '~/ui/lib/PropertiesTable'
import { TableControls, TableTitle } from '~/ui/lib/Table'
import { docLinks } from '~/util/links'
import { pb } from '~/util/path-builder'
import type * as PP from '~/util/path-params'
Expand Down Expand Up @@ -199,22 +200,24 @@ export default function RouterPage() {
<PropertiesTable.DateRow date={routerData.timeCreated} label="Created" />
<PropertiesTable.DateRow date={routerData.timeModified} label="Last Modified" />
</PropertiesTable>
<TableControls className="mb-3">
<TableTitle>Routes</TableTitle>
{canCreateNewRoute ? (
<CreateLink to={pb.vpcRouterRoutesNew({ project, vpc, router })}>
New route
</CreateLink>
) : (
<CreateButton
disabled
disabledReason={routeFormMessage.noNewRoutesOnSystemRouter}
>
New route
</CreateButton>
)}
</TableControls>
{table}
<Divider className="my-8" />
<CardBlock>
<CardBlock.Header title="Routes" description="Rules for directing network traffic">
{canCreateNewRoute ? (
<CreateLink to={pb.vpcRouterRoutesNew({ project, vpc, router })}>
New route
</CreateLink>
) : (
<CreateButton
disabled
disabledReason={routeFormMessage.noNewRoutesOnSystemRouter}
>
New route
</CreateButton>
)}
</CardBlock.Header>
<CardBlock.Body>{table}</CardBlock.Body>
</CardBlock>
<Outlet />
</>
)
Expand Down
5 changes: 0 additions & 5 deletions app/ui/lib/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,4 @@ export const TableEmptyBox = ({ children, border = true }: TableEmptyBoxProps) =
</div>
)

/**
* Used _outside_ of the `Table`, this element includes a soon-to-be-removed description of the resource inside the table,
* along with a link to more info, and a button to take action on the resource listed in the table.
*/
export const TableControls = classed.div`mb-4 flex items-end justify-between space-x-8`
export const TableTitle = classed.div`text-sans-lg text-raise`
2 changes: 1 addition & 1 deletion app/ui/styles/components/Tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/* Tab list container styles */
.ox-tabs-list {
@apply mb-10 flex bg-transparent;
@apply mb-8 flex bg-transparent;
}

.ox-tabs-list:after {
Expand Down
2 changes: 1 addition & 1 deletion app/ui/styles/components/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
}

.ox-form .ox-divider {
@apply !my-10; /* important overrides space-y-* on .ox-form */
@apply !my-8; /* important overrides space-y-* on .ox-form */
}
Loading