From 484204c2a0cc3e1ab7398132d8ff15f4845bb86d Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Tue, 19 Apr 2022 02:48:35 -0400 Subject: [PATCH] Reduce key icon size to avoid extra padding on command palette item - Also remove unneeded imports --- assets/themes/dark.json | 4 ++-- assets/themes/light.json | 4 ++-- styles/src/styleTree/commandPalette.ts | 7 +++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/assets/themes/dark.json b/assets/themes/dark.json index 119450cd71..77d3706e3b 100644 --- a/assets/themes/dark.json +++ b/assets/themes/dark.json @@ -741,8 +741,8 @@ "width": 1 }, "padding": { - "top": 3, - "bottom": 3, + "top": 2, + "bottom": 2, "left": 8, "right": 8 }, diff --git a/assets/themes/light.json b/assets/themes/light.json index 192c6ebe93..dc4381ada8 100644 --- a/assets/themes/light.json +++ b/assets/themes/light.json @@ -741,8 +741,8 @@ "width": 1 }, "padding": { - "top": 3, - "bottom": 3, + "top": 2, + "bottom": 2, "left": 8, "right": 8 }, diff --git a/styles/src/styleTree/commandPalette.ts b/styles/src/styleTree/commandPalette.ts index fd967a6d20..9242f67cbe 100644 --- a/styles/src/styleTree/commandPalette.ts +++ b/styles/src/styleTree/commandPalette.ts @@ -1,6 +1,5 @@ import Theme from "../themes/theme"; -import { colors } from "../tokens"; -import { text, backgroundColor, border, borderColor } from "./components"; +import { text, backgroundColor, border } from "./components"; export default function commandPalette(theme: Theme) { return { @@ -11,8 +10,8 @@ export default function commandPalette(theme: Theme) { background: backgroundColor(theme, "on300"), border: border(theme, "secondary"), padding: { - top: 3, - bottom: 3, + top: 2, + bottom: 2, left: 8, right: 8, },