add diff to mobile

This commit is contained in:
Philipinho
2026-02-01 18:01:24 +00:00
parent fe5b236d41
commit db52b6036e
@@ -1,5 +1,6 @@
import {
ActionIcon,
Badge,
Box,
Button,
Group,
@@ -191,6 +192,7 @@ export default function HistoryModalMobile({ pageId, pageTitle }: Props) {
return (
<Box className={classes.container}>
<Box className={classes.selectorWrapper}>
<Group gap="sm" wrap="nowrap">
<Select
data={selectData}
value={activeHistoryId}
@@ -210,7 +212,19 @@ export default function HistoryModalMobile({ pageId, pageTitle }: Props) {
</Group>
)}
comboboxProps={{ withinPortal: false }}
style={{ flex: 1 }}
/>
{diffCounts && (
<Group gap={4} wrap="nowrap">
<Badge variant="filled" color="green" size="sm">
+{diffCounts.added}
</Badge>
<Badge variant="filled" color="red" size="sm">
-{diffCounts.deleted}
</Badge>
</Group>
)}
</Group>
</Box>
<ScrollArea