mirror of
https://github.com/docmost/docmost.git
synced 2026-08-25 07:12:13 +10:00
fix(client): keep compare banner exit visible even if label lookup fails
This commit is contained in:
@@ -76,7 +76,7 @@ export default function HistoryModalBody({ pageId }: Props) {
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div style={{ position: "relative", flex: 1 }}>
|
<div style={{ position: "relative", flex: 1 }}>
|
||||||
{comparePair && compareLabel && (
|
{comparePair && (
|
||||||
<Group
|
<Group
|
||||||
justify="space-between"
|
justify="space-between"
|
||||||
wrap="nowrap"
|
wrap="nowrap"
|
||||||
@@ -85,7 +85,7 @@ export default function HistoryModalBody({ pageId }: Props) {
|
|||||||
className={classes.compareBanner}
|
className={classes.compareBanner}
|
||||||
>
|
>
|
||||||
<Text size="sm" fw={500} lineClamp={1}>
|
<Text size="sm" fw={500} lineClamp={1}>
|
||||||
{compareLabel}
|
{compareLabel ?? t("Compare versions")}
|
||||||
</Text>
|
</Text>
|
||||||
<CloseButton
|
<CloseButton
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|||||||
Reference in New Issue
Block a user