mirror of
https://github.com/NoCrypt/migu.git
synced 2026-01-11 20:10:22 +00:00
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:
parent
9770eb9976
commit
7921e87c49
4 changed files with 11 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.",
|
||||
|
|
|
|||
Loading…
Reference in a new issue