From 5489e602cab2815e4a8bdb93cba64a1b98ce68b2 Mon Sep 17 00:00:00 2001 From: tglide <26071571+TGlide@users.noreply.github.com> Date: Mon, 14 Aug 2023 15:56:12 +0100 Subject: [PATCH] small design review --- src/lib/commandCenter/commands.ts | 8 +++++--- src/lib/commandCenter/panels/template.svelte | 20 +++++++++++++++++++- src/routes/console/+layout.svelte | 8 -------- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/lib/commandCenter/commands.ts b/src/lib/commandCenter/commands.ts index 734a3ab6a..9b5707e61 100644 --- a/src/lib/commandCenter/commands.ts +++ b/src/lib/commandCenter/commands.ts @@ -288,9 +288,11 @@ export const commandGroupRanks = derived(groupRanksMap, ($groupRankTransformatio const initialRanks = { ...Object.fromEntries(groups.map((group) => [group, 0])), ungrouped: 9999, - databases: 3, - users: 2, - teams: 1, + databases: 4, + users: 3, + teams: 2, + projects: 1, + organizations: 0, navigation: -10, help: -20, misc: -30 diff --git a/src/lib/commandCenter/panels/template.svelte b/src/lib/commandCenter/panels/template.svelte index 61d543bda..08d33d7b2 100644 --- a/src/lib/commandCenter/panels/template.svelte +++ b/src/lib/commandCenter/panels/template.svelte @@ -458,6 +458,8 @@ position: relative; z-index: 10; + font-size: 10px !important; + &:not(:first-child) { margin-block-start: 1rem; } @@ -475,12 +477,28 @@ } .option { - padding: 0.5rem 0.75rem; + padding: 0.5rem 9.5px; + font-size: 14px; position: relative; z-index: 10; width: 100%; box-shadow: none !important; + + :global(i[class^='icon-']) { + font-size: 1rem !important; + width: 1rem !important; + height: 1rem !important; + + position: relative; + } + + :global(i[class^='icon-']::before) { + position: absolute; + top: 50%; + left: 50%; + translate: -50% -50%; + } } &.nested { diff --git a/src/routes/console/+layout.svelte b/src/routes/console/+layout.svelte index 37080eb23..efcd11c0d 100644 --- a/src/routes/console/+layout.svelte +++ b/src/routes/console/+layout.svelte @@ -67,14 +67,6 @@ keys: ['c', 'o'], group: 'organizations' }, - { - label: 'Go to home', - callback: () => { - goto('/console'); - }, - keys: ['h'], - group: 'navigation' - }, { label: 'Open documentation', callback: () => {