refactor: better shortcut indication

This commit is contained in:
Liyas Thomas
2022-10-01 19:19:43 +05:30
parent 048ac5f7a5
commit 6330548cc0
43 changed files with 57 additions and 60 deletions

View File

@@ -51,7 +51,7 @@
class="items-center self-center ml-4 svg-icons"
:class="{ 'text-accent': activeInfoIcon }"
/>
<div v-if="shortcut.length" class="ml-2 <sm:hidden font-medium">
<div v-if="shortcut.length" class="ml-4 <sm:hidden font-medium">
<kbd
v-for="(key, index) in shortcut"
:key="`key-${index}`"

View File

@@ -43,8 +43,9 @@
<h3 class="heading" :class="{ 'ml-4': !fullWidth }">
{{ title }}
</h3>
<span class="flex">
<span class="flex items-center">
<slot name="actions"></slot>
<kbd class="mr-2 shortcut-key">ESC</kbd>
<ButtonSecondary
v-if="dimissible"
v-tippy="{ theme: 'tooltip', delay: [500, 20] }"