diff --git a/.vitepress/theme/components/ShortcutsList.vue b/.vitepress/theme/components/ShortcutsList.vue index 7b88de875..40f068f78 100644 --- a/.vitepress/theme/components/ShortcutsList.vue +++ b/.vitepress/theme/components/ShortcutsList.vue @@ -6,7 +6,7 @@ ×
| {{ cmd.name }} | @@ -194,8 +194,11 @@ td, th { /* Modal Content */ .modal-content { position: relative; + display: flex; + flex-direction: column; overflow: hidden; resize: both; + box-sizing: border-box; background-color: var(--vp-c-bg-soft); margin: 10% auto; border: 1px solid var(--vp-c-divider); @@ -219,6 +222,9 @@ td, th { /* Modal Body */ .modal-body { + flex: 1 1 auto; + min-height: 0; + overflow: auto; font-size: 14px; }