fix: show today timestamp as single line on activity logs

This commit is contained in:
2026-04-30 14:57:27 +08:00
parent 40a5f38eaf
commit 6124ee5bf6

View File

@@ -186,14 +186,18 @@ function AppLogsPage() {
<ThemeIcon variant="transparent" color="gray" size="sm"> <ThemeIcon variant="transparent" color="gray" size="sm">
<TbCalendar size={14} /> <TbCalendar size={14} />
</ThemeIcon> </ThemeIcon>
<Stack gap={0}> {log.createdAt.endsWith('lalu') ? (
<Text size="xs" fw={700}> <Text size="xs" fw={700}>{log.createdAt}</Text>
{log.createdAt.split(' ').slice(1).join(' ')} ) : (
</Text> <Stack gap={0}>
<Text size="xs" c="dimmed"> <Text size="xs" fw={700}>
{log.createdAt.split(' ')[0]} {log.createdAt.split(' ').slice(1).join(' ')}
</Text> </Text>
</Stack> <Text size="xs" c="dimmed">
{log.createdAt.split(' ')[0]}
</Text>
</Stack>
)}
</Group> </Group>
</Table.Td> </Table.Td>
<Table.Td> <Table.Td>