mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-05 08:51:33 +00:00
fix(ui): use correct modals-modal component for Shortcuts modal
This commit is contained in:
parent
d7a2f4a515
commit
fe3638548d
1 changed files with 22 additions and 15 deletions
|
|
@ -1,24 +1,31 @@
|
||||||
<template>
|
<template>
|
||||||
<ui-modal v-model="show" :width="600" title="Keyboard Shortcuts" @close="close">
|
<modals-modal v-model="show" name="shortcuts" :width="600">
|
||||||
<div class="p-6 text-sm text-gray-200">
|
<template #outer>
|
||||||
<div v-for="(section, index) in shortcutSections" :key="index" class="mb-6 last:mb-0">
|
<div class="absolute top-0 left-0 p-5 w-2/3 overflow-hidden">
|
||||||
<h3 class="text-lg font-semibold text-white mb-3">{{ section.title }}</h3>
|
<p class="text-3xl text-white truncate">Keyboard Shortcuts</p>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-y-2 gap-x-4">
|
</div>
|
||||||
<div v-for="shortcut in section.shortcuts" :key="shortcut.keys" class="flex justify-between items-center py-1 border-b border-white/10 last:border-b-0">
|
</template>
|
||||||
<span>{{ shortcut.action }}</span>
|
<div class="px-6 py-6 w-full text-sm rounded-lg bg-bg shadow-lg border border-black-300 overflow-y-auto overflow-x-hidden" style="max-height: 80vh">
|
||||||
<div class="flex gap-1">
|
<div class="text-sm text-gray-200">
|
||||||
<span v-for="(key, i) in shortcut.keys.replace(/Key/g, '').split('-')" :key="i" class="px-2 py-0.5 bg-bg font-mono text-xs rounded-sm border border-gray-600 text-gray-300">
|
<div v-for="(section, index) in shortcutSections" :key="index" class="mb-6 last:mb-0">
|
||||||
{{ key }}
|
<h3 class="text-lg font-semibold text-white mb-3">{{ section.title }}</h3>
|
||||||
</span>
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-y-2 gap-x-4">
|
||||||
|
<div v-for="shortcut in section.shortcuts" :key="shortcut.keys" class="flex justify-between items-center py-1 border-b border-white/10 last:border-b-0">
|
||||||
|
<span>{{ shortcut.action }}</span>
|
||||||
|
<div class="flex gap-1">
|
||||||
|
<span v-for="(key, i) in shortcut.keys.replace(/Key/g, '').split('-')" :key="i" class="px-2 py-0.5 bg-bg font-mono text-xs rounded-sm border border-gray-600 text-gray-300">
|
||||||
|
{{ key }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex justify-end pt-4 border-t border-white/10 mt-4">
|
||||||
|
<ui-btn @click="close">Close</ui-btn>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end p-4 border-t border-white/10">
|
</modals-modal>
|
||||||
<ui-btn @click="close">Close</ui-btn>
|
|
||||||
</div>
|
|
||||||
</ui-modal>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue