fix: update meta tag for mobile web app capability and adjust inert state handling based on viewport
This commit is contained in:
parent
4133983ac9
commit
b9371fbdfd
1 changed files with 8 additions and 4 deletions
12
dist/index.html
vendored
12
dist/index.html
vendored
|
|
@ -49,7 +49,7 @@
|
|||
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
|
||||
<meta name="theme-color" content="#0f172a" media="(prefers-color-scheme: dark)">
|
||||
<meta name="msapplication-TileColor" content="#2563eb">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="apple-mobile-web-app-title" content="DebridCompare">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
|
|
@ -1998,9 +1998,13 @@
|
|||
elements.dropdownTriggers = Array.from(document.querySelectorAll('.nav-dropdown-trigger'));
|
||||
buildMobileLinks();
|
||||
|
||||
// Set initial inert state
|
||||
if (elements.nav && state.isMobile) {
|
||||
elements.nav.setAttribute('inert', '');
|
||||
// Set initial inert state based on viewport
|
||||
if (elements.nav) {
|
||||
if (state.isMobile) {
|
||||
elements.nav.setAttribute('inert', '');
|
||||
} else {
|
||||
elements.nav.removeAttribute('inert');
|
||||
}
|
||||
}
|
||||
|
||||
// Nav toggle click handler
|
||||
|
|
|
|||
Loading…
Reference in a new issue