fix(ui): add keybind label padding (#42726)
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
padding-inline: 4px;
|
||||
gap: 4px;
|
||||
min-width: 14px;
|
||||
height: 14px;
|
||||
@@ -48,7 +49,6 @@
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-width: 14px;
|
||||
height: 11px;
|
||||
padding: 0;
|
||||
flex: none;
|
||||
|
||||
@@ -58,6 +58,8 @@ export const MultipleKeys = {
|
||||
<div style={{ display: "flex", gap: "24px", "align-items": "center" }}>
|
||||
<KeybindV2 keys={["⌘", "K"]} variant="neutral" />
|
||||
<KeybindV2 keys={["⌘", "K"]} variant="ghost" />
|
||||
<KeybindV2 keys={["Ctrl", "B"]} variant="neutral" />
|
||||
<KeybindV2 keys={["Ctrl", "B"]} variant="ghost" />
|
||||
</div>
|
||||
),
|
||||
}
|
||||
@@ -70,12 +72,14 @@ export const AllExamples = {
|
||||
<KeybindV2 keys={["⌘"]} variant="neutral" />
|
||||
<KeybindV2 keys={["⌘", "K"]} variant="neutral" />
|
||||
<KeybindV2 keys={["⌘", "⇧", "P"]} variant="neutral" />
|
||||
<KeybindV2 keys={["Ctrl", "Shift", "B"]} variant="neutral" />
|
||||
</div>
|
||||
<div style={{ display: "flex", gap: "24px", "align-items": "center" }}>
|
||||
<span style={{ "font-size": "11px", color: "#808080", width: "50px" }}>Ghost</span>
|
||||
<KeybindV2 keys={["⌘"]} variant="ghost" />
|
||||
<KeybindV2 keys={["⌘", "K"]} variant="ghost" />
|
||||
<KeybindV2 keys={["⌘", "⇧", "P"]} variant="ghost" />
|
||||
<KeybindV2 keys={["Ctrl", "Shift", "B"]} variant="ghost" />
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user