From a8a6c0a42873881288037ab8424db752634421cf Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 21 Mar 2022 09:57:55 +0000 Subject: [PATCH] Properly center all path, screen and component dropdown menu icons --- packages/builder/src/components/common/NavItem.svelte | 5 ++--- .../ComponentNavigationTree/ComponentDropdownMenu.svelte | 7 +++++++ .../ComponentNavigationTree/PathDropdownMenu.svelte | 4 ++++ .../ComponentNavigationTree/ScreenDropdownMenu.svelte | 7 +++++++ 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/common/NavItem.svelte b/packages/builder/src/components/common/NavItem.svelte index c653f4739a..6e16879bc2 100644 --- a/packages/builder/src/components/common/NavItem.svelte +++ b/packages/builder/src/components/common/NavItem.svelte @@ -125,10 +125,9 @@ height: 20px; cursor: pointer; position: relative; - flex-direction: row; - justify-content: center; - align-items: center; + display: grid; margin-left: var(--spacing-s); + place-items: center; } .iconText { diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ComponentDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ComponentDropdownMenu.svelte index 75601084a0..ae031e14bd 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ComponentDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ComponentDropdownMenu.svelte @@ -138,3 +138,10 @@ onOk={deleteComponent} /> {/if} + + diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathDropdownMenu.svelte index 5d9eb2568c..6de656b6b5 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathDropdownMenu.svelte @@ -75,4 +75,8 @@ align-items: flex-start; padding-left: var(--spacing-xl); } + .icon { + display: grid; + place-items: center; + } diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte index 972414ae0b..76bb48a26c 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte @@ -103,3 +103,10 @@ confirmText="Duplicate" /> + +