From 7f4730ef3c94839d82764531091f441405cf34b5 Mon Sep 17 00:00:00 2001 From: Dean Date: Thu, 12 May 2022 10:28:32 +0100 Subject: [PATCH] Minor fix for application lock button labelling --- .../builder/src/components/common/AppLockModal.svelte | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/builder/src/components/common/AppLockModal.svelte b/packages/builder/src/components/common/AppLockModal.svelte index a30d1c6698..77c26a59d2 100644 --- a/packages/builder/src/components/common/AppLockModal.svelte +++ b/packages/builder/src/components/common/AppLockModal.svelte @@ -20,11 +20,11 @@ $: lockedBy = app?.lockedBy $: lockedByYou = $auth.user.email === lockedBy?.email + $: lockIdentifer = `${ - lockedBy && Object.prototype.hasOwnProperty.call(lockedBy, "firstName") - ? lockedBy?.firstName - : lockedBy?.email + lockedBy && lockedBy.firstName ? lockedBy?.firstName : lockedBy?.email }` + $: lockedByHeading = lockedBy && lockedByYou ? "Locked by you" : `Locked by ${lockIdentifer}` @@ -141,9 +141,6 @@ .lock-status { display: flex; gap: var(--spacing-s); + max-width: 175px; } - /* .lock-status :global(.spectrum-Button-label) { - font-weight: 200; - font-family: var(--font-sans); - } */