Skip to content

Commit e98012a

Browse files
committed
let's just wrap instead. this is why I'm not a designer
1 parent 9b6ffac commit e98012a

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

app/pages/system/UpdatePage.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
Images24Icon,
1414
SoftwareUpdate16Icon,
1515
SoftwareUpdate24Icon,
16-
Time16Icon,
16+
TimeOutline12Icon,
1717
} from '@oxide/design-system/icons/react'
1818
import { Badge } from '@oxide/design-system/ui'
1919

@@ -166,7 +166,7 @@ export default function UpdatePage() {
166166
</PropertiesTable.Row>
167167
</PropertiesTable>
168168

169-
<CardBlock className="min-w-160">
169+
<CardBlock>
170170
<CardBlock.Header title="Releases" />
171171
<CardBlock.Body>
172172
<ul className="space-y-3">
@@ -175,21 +175,21 @@ export default function UpdatePage() {
175175
return (
176176
<li
177177
key={repo.hash}
178-
className="border-secondary flex items-center gap-4 rounded border p-4"
178+
className="border-secondary flex items-center gap-3 rounded border p-4"
179179
>
180-
<Images24Icon className="text-secondary shrink-0" aria-hidden />
181-
<div className="flex-1">
182-
<div className="flex items-center gap-2">
183-
<span className="text-sans-semi-lg text-raise">
184-
{repo.systemVersion}
185-
</span>
186-
{isTarget && <Badge color="default">Target</Badge>}
180+
<Images24Icon className="text-tertiary shrink-0" aria-hidden />
181+
<div className="flex min-w-0 flex-1 flex-wrap items-center gap-x-4 gap-y-2">
182+
<div className="flex-1">
183+
<div className="flex items-center gap-2">
184+
<span className="text-sans-semi-lg text-raise">
185+
{repo.systemVersion}
186+
</span>
187+
{isTarget && <Badge color="default">Target</Badge>}
188+
</div>
189+
<div className="text-secondary">{repo.fileName}</div>
187190
</div>
188-
<div className="text-secondary">{repo.fileName}</div>
189-
</div>
190-
<div className="flex items-center gap-4">
191191
<div className="flex items-center gap-1">
192-
<Time16Icon aria-hidden />
192+
<TimeOutline12Icon className="text-tertiary mr-0.75" aria-hidden />
193193
<DateTime date={repo.timeCreated} />
194194
</div>
195195
</div>

app/ui/lib/CardBlock.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ const widthClass: Record<Width, string> = {
2222
export type CardBlockProps = {
2323
children: ReactNode
2424
width?: Width
25-
className?: string
2625
}
2726

28-
export function CardBlock({ children, className, width = 'full' }: CardBlockProps) {
27+
export function CardBlock({ children, width = 'full' }: CardBlockProps) {
2928
return (
3029
<div
3130
className={cn(
3231
'text-sans-md border-default *:border-b-secondary flex flex-col rounded-lg border py-5 *:border-b last:*:border-0 last:*:pb-0',
33-
widthClass[width],
34-
className
32+
widthClass[width]
3533
)}
3634
>
3735
{children}

0 commit comments

Comments
 (0)