From fdfe09f8d08daf2db96adf42c1028b4d0388c5b9 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 6 Sep 2023 14:15:43 +0100 Subject: [PATCH] Clean up and use existing components --- .../pages/builder/portal/apps/[appId].svelte | 4 +- .../apps/_components/PortalSideBar.svelte | 52 +++++++++++-------- .../apps/_components/PortalSideNavItem.svelte | 42 --------------- 3 files changed, 33 insertions(+), 65 deletions(-) delete mode 100644 packages/builder/src/pages/builder/portal/apps/_components/PortalSideNavItem.svelte diff --git a/packages/builder/src/pages/builder/portal/apps/[appId].svelte b/packages/builder/src/pages/builder/portal/apps/[appId].svelte index f19e95d3d0..16e4b995d8 100644 --- a/packages/builder/src/pages/builder/portal/apps/[appId].svelte +++ b/packages/builder/src/pages/builder/portal/apps/[appId].svelte @@ -58,14 +58,14 @@ flex-direction: column; justify-content: flex-start; align-items: stretch; - gap: var(--spacing-s); - padding: var(--spacing-s) var(--spacing-l) var(--spacing-l) var(--spacing-l); + padding: 0 var(--spacing-l) var(--spacing-l) var(--spacing-l); } .header { display: flex; justify-content: flex-start; align-items: center; gap: var(--spacing-xs); + flex: 0 0 50px; } iframe { flex: 1 1 auto; diff --git a/packages/builder/src/pages/builder/portal/apps/_components/PortalSideBar.svelte b/packages/builder/src/pages/builder/portal/apps/_components/PortalSideBar.svelte index 29c5373b70..1e21bd7a9a 100644 --- a/packages/builder/src/pages/builder/portal/apps/_components/PortalSideBar.svelte +++ b/packages/builder/src/pages/builder/portal/apps/_components/PortalSideBar.svelte @@ -1,9 +1,9 @@ - -
$goto(url)} class:selected> - -
{text}
-
- -