mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
add diff to mobile
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
ActionIcon,
|
ActionIcon,
|
||||||
|
Badge,
|
||||||
Box,
|
Box,
|
||||||
Button,
|
Button,
|
||||||
Group,
|
Group,
|
||||||
@@ -191,6 +192,7 @@ export default function HistoryModalMobile({ pageId, pageTitle }: Props) {
|
|||||||
return (
|
return (
|
||||||
<Box className={classes.container}>
|
<Box className={classes.container}>
|
||||||
<Box className={classes.selectorWrapper}>
|
<Box className={classes.selectorWrapper}>
|
||||||
|
<Group gap="sm" wrap="nowrap">
|
||||||
<Select
|
<Select
|
||||||
data={selectData}
|
data={selectData}
|
||||||
value={activeHistoryId}
|
value={activeHistoryId}
|
||||||
@@ -210,7 +212,19 @@ export default function HistoryModalMobile({ pageId, pageTitle }: Props) {
|
|||||||
</Group>
|
</Group>
|
||||||
)}
|
)}
|
||||||
comboboxProps={{ withinPortal: false }}
|
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>
|
</Box>
|
||||||
|
|
||||||
<ScrollArea
|
<ScrollArea
|
||||||
|
|||||||
Reference in New Issue
Block a user