fix: perbaiki layout accordion header Bug Reports agar badge status selalu terlihat

This commit is contained in:
2026-05-26 14:50:47 +08:00
parent 457f36be06
commit fe83fd6025

View File

@@ -700,27 +700,29 @@ function ListErrorsPage() {
}}
>
<Accordion.Control>
<Group wrap="nowrap">
<Group wrap="nowrap" style={{ minWidth: 0 }}>
<ThemeIcon
color={STATUS_COLOR[bug.status] ?? 'gray'}
variant="light"
size="lg"
radius="md"
style={{ flexShrink: 0 }}
>
<TbAlertTriangle size={20} />
</ThemeIcon>
<Box style={{ flex: 1 }}>
<Group justify="space-between">
<Text size="sm" fw={600} lineClamp={1}>{bug.description}</Text>
<Box style={{ flex: 1, minWidth: 0 }}>
<Group wrap="nowrap" gap="xs">
<Text size="sm" fw={600} lineClamp={1} style={{ flex: 1, minWidth: 0 }}>{bug.description}</Text>
<Badge
color={STATUS_COLOR[bug.status] ?? 'gray'}
variant="dot"
size="sm"
style={{ flexShrink: 0 }}
>
{STATUS_LABEL[bug.status] ?? bug.status}
</Badge>
</Group>
<Text size="xs" c="dimmed">
<Text size="xs" c="dimmed" lineClamp={1}>
{dayjs(bug.createdAt).format('D MMM YYYY, HH:mm')} · {bug.appId?.toUpperCase()} · v{bug.affectedVersion}
</Text>
</Box>