Group activity by time in document sidebar and fix double show more (#6679)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-09-23 12:56:45 +07:00
committed by GitHub
parent db10746bec
commit eef1bd2e0d
3 changed files with 19 additions and 4 deletions
@@ -23,6 +23,7 @@
export let value: Markup | undefined
export let prevValue: Markup | undefined = undefined
export let attribute: AnyAttribute | undefined = undefined
export let withShowMore = true
export let showOnlyDiff: boolean = false
@@ -85,8 +86,14 @@
}
</script>
<ShowMore>
{#if withShowMore}
<ShowMore>
{#key [value, prevValue]}
<MarkupDiffViewer objectClass={attribute?.attributeOf} {content} {comparedVersion} />
{/key}
</ShowMore>
{:else}
{#key [value, prevValue]}
<MarkupDiffViewer objectClass={attribute?.attributeOf} {content} {comparedVersion} />
{/key}
</ShowMore>
{/if}