fix: disabled elements interrupting dpad navigation

fix: disabled buttons not being clear enough
fix: return toaster to old position [didint show in modals]
This commit is contained in:
ThaUnknown 2024-08-19 23:04:09 +02:00
parent 9770eb9976
commit 7921e87c49
4 changed files with 11 additions and 3 deletions

View file

@ -34,8 +34,8 @@
<ViewAnime />
<Logout />
<Sidebar bind:page={$page} />
<Toaster visibleToasts={6} position='top-right' theme='dark' richColors duration={10000} closeButton />
<div class='overflow-hidden content-wrapper h-full z-10'>
<Toaster visibleToasts={6} position='top-right' theme='dark' richColors duration={10000} closeButton />
<TorrentModal />
<Router bind:page={$page} />
</div>

View file

@ -131,6 +131,10 @@ body {
background: #000;
}
.btn:disabled {
opacity: 0.3 !important;
}
img {
-webkit-user-drag: none;
}
@ -153,6 +157,10 @@ img[src=''], img[src=' '] {
box-shadow: inset 0 0 0 1.5px #eee !important;
}
.btn-secondary:focus-visible {
box-shadow: inset 0 0 0 1.5px #000 !important;
}
.modal:focus-visible {
box-shadow: none !important;
}

View file

@ -130,7 +130,7 @@ function getDistance (anchor, relative) {
* @returns {Element[]} - An array of keyboard-focusable elements.
*/
function getKeyboardFocusableElements (element = document.body) {
return [...element.querySelectorAll('a[href], button:not([disabled]), fieldset:not([disabled]), input:not([disabled]), optgroup:not([disabled]), option:not([disabled]), select:not([disabled]), textarea:not([disabled]), details, [tabindex]:not([tabindex="-1"]), [contenteditable], [controls]')].filter(
return [...element.querySelectorAll('a[href], button:not([disabled]), fieldset:not([disabled]), input:not([disabled]), optgroup:not([disabled]), option:not([disabled]), select:not([disabled]), textarea:not([disabled]), details, [tabindex]:not([tabindex="-1"], [disabled]), [contenteditable], [controls]')].filter(
el => !el.getAttribute('aria-hidden')
)
}

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "5.3.1",
"version": "5.3.4",
"private": true,
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",