From 5ff74d1d1e04e8899567b4aebf5de2f150938b5d Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Wed, 13 Dec 2023 13:28:48 -0500 Subject: [PATCH] Adds global `mcontent` class to modal contents Note: This is poorly designed, the modal should control the padding on its children and avoid the use of a global selector. --- src/common/dialog/RevisionsDialog.svelte | 126 ++++++++++++----------- 1 file changed, 67 insertions(+), 59 deletions(-) diff --git a/src/common/dialog/RevisionsDialog.svelte b/src/common/dialog/RevisionsDialog.svelte index 40169de74..13b75f21a 100644 --- a/src/common/dialog/RevisionsDialog.svelte +++ b/src/common/dialog/RevisionsDialog.svelte @@ -40,72 +40,80 @@ {:then user} -
-

{$_("dialogRevisionsDialog.heading")}

- -
+
+
+

{$_("dialogRevisionsDialog.heading")}

+ +
- {#if isPremiumOrg(user.organization)} -
- -
- {#if enabled} -
- - {#each sortedRevisions as revision} - - -
{revision.version} -

{revision.comment}

- + + + {#if enabled} +
+ + {#each sortedRevisions as revision} + + + + - - + {:else} + - - {:else} - - {/each} -
{revision.version} +

{revision.comment}

+ +
{$_("dialogRevisionsDialog.empty")}
{$_("dialogRevisionsDialog.empty")}
-
- {#if revisions.length > 0}

- {$_("dialogRevisionsDialog.total", { - values: { n: revisions.length }, - })} -

{/if} + {/each} +
+
+ {#if revisions.length > 0}

+ {$_("dialogRevisionsDialog.total", { + values: { n: revisions.length }, + })} +

{/if} + {/if} + {:else if isOrgAdmin(user)} + triggerPremiumUpgradeFlow(user?.organization)} + /> + {:else} + {/if} - {:else if isOrgAdmin(user)} - triggerPremiumUpgradeFlow(user?.organization)} - /> - {:else} - - {/if} +
{:catch} - +
+ +
{/await}