mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Improve navigation footer bar hints
This commit is contained in:
@@ -225,7 +225,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.hint-text {
|
||||
.hint-text:not(:empty) {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,9 @@
|
||||
{#if hint.plus}
|
||||
<LayoutRow class="plus">+</LayoutRow>
|
||||
{/if}
|
||||
{#if hint.slash}
|
||||
<LayoutRow class="slash">/</LayoutRow>
|
||||
{/if}
|
||||
<UserInputLabel mouseMotion={hint.mouse} keysWithLabelsGroups={inputKeysForPlatform(hint)}>{hint.label}</UserInputLabel>
|
||||
{/each}
|
||||
{/each}
|
||||
@@ -57,7 +60,8 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.plus {
|
||||
.plus,
|
||||
.slash {
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
font-weight: 700;
|
||||
|
||||
@@ -172,6 +172,8 @@ export class HintInfo {
|
||||
readonly label!: string;
|
||||
|
||||
readonly plus!: boolean;
|
||||
|
||||
readonly slash!: boolean;
|
||||
}
|
||||
|
||||
// Rust enum `Key`
|
||||
|
||||
Reference in New Issue
Block a user