From 1c0b050d2cd146faa4e8148f07e1af5d998e4873 Mon Sep 17 00:00:00 2001 From: tglide <26071571+TGlide@users.noreply.github.com> Date: Mon, 10 Jul 2023 15:09:16 +0100 Subject: [PATCH] fix: command center styles --- src/lib/commandCenter/panels/template.svelte | 186 +++++++++---------- 1 file changed, 93 insertions(+), 93 deletions(-) diff --git a/src/lib/commandCenter/panels/template.svelte b/src/lib/commandCenter/panels/template.svelte index 1c6907ad2..ba26bfc1b 100644 --- a/src/lib/commandCenter/panels/template.svelte +++ b/src/lib/commandCenter/panels/template.svelte @@ -163,65 +163,64 @@ bind:this={cardEl} class:press={!$commandCenterCtx.isInitialPanel} class:scale-up={$commandCenterCtx.isInitialPanel && $commandCenterCtx.open}> -
-
- {#each breadcrumbs as crumb, i} - - {/each} +
+ {#each breadcrumbs as crumb, i} + + {/each} - - - -
- -
- {#if groupsAndOptions} -
    - {#each groupsAndOptions as item} - {@const isSelected = !isGroup(item) && item.index === selected} - {#if isGroup(item)} -
  • - {item.name} -
  • - {:else} -
  • - {#if isSelected} -
    - {/if} - -
  • - {/if} - {:else} -
  • - - No options found - -
  • - {/each} -
- {:else} - - {/if} -
+ + +
+ +
+ {#if groupsAndOptions} +
    + {#each groupsAndOptions as item} + {@const isSelected = !isGroup(item) && item.index === selected} + {#if isGroup(item)} +
  • + {item.name} +
  • + {:else} +
  • + {#if isSelected} +
    + {/if} + +
  • + {/if} + {:else} +
  • + + No options found + +
  • + {/each} +
+ {:else} + + {/if} +
+ @@ -338,48 +337,49 @@ } } - .options { + .content { overflow-y: auto; - height: 100%; - flex-shrink: 1; + flex-grow: 1; - padding: 1rem; + .options { + padding: 1rem; - .group { - color: hsl(var(--color-neutral-70)); - margin-inline-start: 0.25rem; - margin-block-start: 1rem; - margin-block-end: 0.25rem; - position: relative; - z-index: 10; - } - - .result { - transition: 150ms; - position: relative; - - opacity: 0.65; - transition: 75ms cubic-bezier(0.5, 1, 0.89, 1); - &[data-selected] { - opacity: 1; - transition: 150ms cubic-bezier(0.5, 1, 0.89, 1); - } - - .bg { - position: absolute; - inset: 0; - background-color: hsl(var(--color-neutral-200)); - border-radius: 0.75rem; - translate: 0 -1px; - } - - .option { - padding: 0.5rem 0.75rem; + .group { + color: hsl(var(--color-neutral-70)); + margin-inline-start: 0.25rem; + margin-block-start: 1rem; + margin-block-end: 0.25rem; position: relative; z-index: 10; - width: 100%; + } - box-shadow: none !important; + .result { + transition: 150ms; + position: relative; + + opacity: 0.65; + transition: 75ms cubic-bezier(0.5, 1, 0.89, 1); + &[data-selected] { + opacity: 1; + transition: 150ms cubic-bezier(0.5, 1, 0.89, 1); + } + + .bg { + position: absolute; + inset: 0; + background-color: hsl(var(--color-neutral-200)); + border-radius: 0.75rem; + translate: 0 -1px; + } + + .option { + padding: 0.5rem 0.75rem; + position: relative; + z-index: 10; + width: 100%; + + box-shadow: none !important; + } } } }