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