Improved responsive styles. Improved focus changes.

This commit is contained in:
Leo Vasanko
2023-11-06 19:23:21 +00:00
parent b25d0fc14b
commit 6938740b0f
4 changed files with 17 additions and 14 deletions

View File

@@ -2,7 +2,6 @@
<nav
class="breadcrumb"
aria-label="Breadcrumb"
tabindex="0"
@keyup.left.stop="move(-1)"
@keyup.right.stop="move(1)"
@focus="move(0)"

View File

@@ -1,5 +1,5 @@
<template>
<table v-if="props.documents.length || editing" @blur="cursor = null">
<table v-if="props.documents.length || editing">
<thead>
<tr>
<th class="selection">
@@ -95,8 +95,9 @@
<a
:href="url_for(doc)"
tabindex="-1"
@contextmenu.stop
@contextmenu.prevent
@focus.stop="cursor = doc"
@blur="ev => { if (!editing) cursor = null }"
>{{ doc.name }}</a
>
<button
@@ -245,7 +246,8 @@ defineExpose({
scrolltr = tr
if (!scrolltimer) {
scrolltimer = setTimeout(() => {
scrolltr.scrollIntoView({ block: 'center', behavior: 'smooth' })
if (scrolltr)
scrolltr.scrollIntoView({ block: 'center', behavior: 'smooth' })
scrolltimer = null
}, 300)
}
@@ -370,10 +372,10 @@ table .selection {
text-overflow: clip;
}
table .modified {
width: 8rem;
width: 8em;
}
table .size {
width: 4rem;
width: 5em;
}
table .menu {
width: 1rem;