Skip to content

Commit 79c6bc5

Browse files
Thinner small rows (#2803)
* Thinner small rows * turn off rowHeight: large for ip pools page * Dont stack IP pool utilization --------- Co-authored-by: David Crespo <[email protected]>
1 parent f454f5e commit 79c6bc5

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

app/components/IpPoolUtilization.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function IpUtilCell(util: IpPoolUtilization) {
3232
// a pool already exists with IPv6 ranges, so we might as well show that. also
3333
// this is nice for e2e testing the utilization logic
3434
return (
35-
<div className="space-y-1">
35+
<div className="flex gap-4">
3636
<div>
3737
<Badge color="neutral" className="mr-2 !normal-case">
3838
v4

app/pages/system/networking/IpPoolsPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ export default function IpPoolsPage() {
112112
const { table, query } = useQueryTable({
113113
query: ipPoolList(),
114114
columns,
115+
// turn this back on if we expect to see IPv6 ranges regularly
116+
// rowHeight: 'large',
115117
emptyState: <EmptyState />,
116118
})
117119
const { data: pools } = query

app/ui/lib/DateTime.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import { toLocaleDateString, toLocaleTimeString } from '~/util/date'
1010

1111
export const DateTime = ({ date, locale }: { date: Date; locale?: string }) => (
12-
<time dateTime={date.toISOString()} className="flex flex-wrap gap-x-1">
12+
<time dateTime={date.toISOString()} className="flex gap-x-1">
1313
<span>{toLocaleDateString(date, locale)}</span>
1414
<span className="text-tertiary">{toLocaleTimeString(date, locale)}</span>
1515
</time>

app/ui/lib/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ Table.Cell = ({ height = 'small', className, children, ...props }: TableCellProp
104104
>
105105
<div
106106
className={cn(
107-
'relative -my-[1px] -mr-[2px] flex items-center border-b border-l p-3 border-secondary',
108-
{ 'h-12': height === 'small', 'h-16': height === 'large' }
107+
'relative -my-[1px] -mr-[2px] flex items-center border-b border-l px-3 py-2 border-secondary',
108+
{ 'h-11': height === 'small', 'h-14': height === 'large' }
109109
)}
110110
>
111111
{children}

0 commit comments

Comments
 (0)