diff --git a/app/Views/admin/bulk-enrich.php b/app/Views/admin/bulk-enrich.php index c72361ac6..2b896cffc 100644 --- a/app/Views/admin/bulk-enrich.php +++ b/app/Views/admin/bulk-enrich.php @@ -83,7 +83,7 @@

-
+
-
-
+
-
@@ -996,19 +996,40 @@ function initializeMobileMenu() { const closeMobileMenuButton = document.getElementById('close-mobile-menu'); const mobileMenuOverlay = document.getElementById('mobile-menu-overlay'); const sidebar = document.getElementById('sidebar'); + let scrollLockY = 0; function openMobileMenu() { sidebar.classList.remove('-translate-x-full'); sidebar.classList.add('translate-x-0'); mobileMenuOverlay.classList.remove('hidden'); + // Lock the page behind the overlay. `overflow:hidden` on alone is + // not enough on iOS Safari — touch-drag still scrolls the content under + // the overlay — so pin the body in place and restore on close. + scrollLockY = window.scrollY || document.documentElement.scrollTop || 0; document.body.classList.add('overflow-hidden'); + document.body.style.position = 'fixed'; + document.body.style.top = `-${scrollLockY}px`; + document.body.style.left = '0'; + document.body.style.right = '0'; + document.body.style.width = '100%'; } function closeMobileMenu() { sidebar.classList.add('-translate-x-full'); sidebar.classList.remove('translate-x-0'); mobileMenuOverlay.classList.add('hidden'); + const wasLocked = document.body.style.position === 'fixed'; document.body.classList.remove('overflow-hidden'); + document.body.style.position = ''; + document.body.style.top = ''; + document.body.style.left = ''; + document.body.style.right = ''; + document.body.style.width = ''; + // Only restore scroll when we actually locked (avoid jumping to top when + // close fires on desktop / nav-link clicks where no lock was applied). + if (wasLocked) { + window.scrollTo(0, scrollLockY); + } } if (mobileMenuButton) { diff --git a/app/Views/settings/advanced-tab.php b/app/Views/settings/advanced-tab.php index 0f1ce5119..3dbe08d7c 100644 --- a/app/Views/settings/advanced-tab.php +++ b/app/Views/settings/advanced-tab.php @@ -3,11 +3,6 @@ /** @var string $csrfToken */ use App\Support\HtmlHelper; ?> -
@@ -61,7 +56,7 @@
-
+
+ class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500">
+ class="mt-1 block w-full rounded-md shadow-sm focus:border-blue-500 focus:ring-blue-500">
+ class="mt-1 block w-full rounded-md shadow-sm focus:border-blue-500 focus:ring-blue-500">
@@ -136,7 +136,7 @@ class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
+ class="mt-1 block w-full rounded-md shadow-sm focus:border-blue-500 focus:ring-blue-500">

@@ -74,7 +74,7 @@ class="mt-1 block w-full rounded-md + class="mt-1 block w-full rounded-md shadow-sm focus:border-blue-500 focus:ring-blue-500">
@@ -164,7 +164,7 @@ class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indig + class="mt-1 block w-full rounded-md shadow-sm focus:border-blue-500 focus:ring-blue-500"> + class="mt-1 block w-full rounded-md shadow-sm focus:border-blue-500 focus:ring-blue-500">

@@ -189,7 +189,7 @@ class="mt-1 block w-full rounded-md
diff --git a/storage/plugins/archives/views/places/index.php b/storage/plugins/archives/views/places/index.php index 5813725e9..d82ef4a31 100644 --- a/storage/plugins/archives/views/places/index.php +++ b/storage/plugins/archives/views/places/index.php @@ -35,7 +35,7 @@

+ class="bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 px-4 rounded shadow-sm">
diff --git a/storage/plugins/archives/views/places/show.php b/storage/plugins/archives/views/places/show.php index 37ce10b80..5d13387e8 100644 --- a/storage/plugins/archives/views/places/show.php +++ b/storage/plugins/archives/views/places/show.php @@ -75,7 +75,7 @@
+ class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm font-semibold shadow-sm"> " class="rounded-md border-gray-300"> - +
diff --git a/storage/plugins/archives/views/search.php b/storage/plugins/archives/views/search.php index 44fc669c3..c64c4156a 100644 --- a/storage/plugins/archives/views/search.php +++ b/storage/plugins/archives/views/search.php @@ -10,13 +10,13 @@ $e = static fn(mixed $v): string => htmlspecialchars((string) $v, ENT_QUOTES, 'UTF-8'); $levelBadge = [ - 'fonds' => 'bg-purple-100 text-purple-800', + 'fonds' => 'bg-blue-100 text-blue-800', 'series' => 'bg-blue-100 text-blue-800', 'file' => 'bg-green-100 text-green-800', 'item' => 'bg-gray-100 text-gray-800', ]; $typeBadge = [ - 'person' => 'bg-indigo-100 text-indigo-800', + 'person' => 'bg-blue-100 text-blue-800', 'corporate' => 'bg-amber-100 text-amber-800', 'family' => 'bg-pink-100 text-pink-800', ]; @@ -172,7 +172,7 @@ class="btn-primary"> 0): ?> + class="text-xs text-blue-600 hover:underline"> diff --git a/storage/plugins/archives/views/show.php b/storage/plugins/archives/views/show.php index 909f39d42..43a516d20 100644 --- a/storage/plugins/archives/views/show.php +++ b/storage/plugins/archives/views/show.php @@ -39,7 +39,7 @@ } $levelBadge = [ - 'fonds' => 'bg-purple-100 text-purple-800', + 'fonds' => 'bg-blue-100 text-blue-800', 'series' => 'bg-blue-100 text-blue-800', 'file' => 'bg-green-100 text-green-800', 'item' => 'bg-gray-100 text-gray-800', @@ -397,7 +397,7 @@ class="block w-full text-xs text-gray-500 file:mr-3 file:py-2 file:px-3 file:rou - 'bg-indigo-100 text-indigo-800','corporate'=>'bg-amber-100 text-amber-800','family'=>'bg-pink-100 text-pink-800']; ?> + 'bg-blue-100 text-blue-800','corporate'=>'bg-amber-100 text-amber-800','family'=>'bg-pink-100 text-pink-800']; ?>

diff --git a/storage/plugins/digital-library/views/admin-form-fields.php b/storage/plugins/digital-library/views/admin-form-fields.php index 96a9bb8b7..8265305d3 100644 --- a/storage/plugins/digital-library/views/admin-form-fields.php +++ b/storage/plugins/digital-library/views/admin-form-fields.php @@ -12,12 +12,12 @@ $currentAudioUrl = $book['audio_url'] ?? ''; ?> -

-

- +
+

+

-

+

@@ -221,7 +221,7 @@ class="btn btn-primary flex items-center justify-center gap-2 w-full md:w-auto"> const link = document.createElement('a'); link.href = displayLinkUrl; link.target = '_blank'; - link.className = 'text-xs text-purple-600 hover:underline'; + link.className = 'text-xs text-blue-600 hover:underline'; link.textContent = ; wrapper.appendChild(link); diff --git a/storage/plugins/discogs/views/settings.php b/storage/plugins/discogs/views/settings.php index afefb17a8..5779136c7 100644 --- a/storage/plugins/discogs/views/settings.php +++ b/storage/plugins/discogs/views/settings.php @@ -42,11 +42,11 @@ $pluginsRoute = htmlspecialchars(url('/admin/plugins'), ENT_QUOTES, 'UTF-8'); ?> -
+

- + Discogs -

@@ -89,14 +89,14 @@ -

+

-
+
- class="w-4 h-4 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500"> + class="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
@@ -62,7 +62,7 @@ class="w-4 h-4 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500">
- class="w-4 h-4 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500"> + class="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
- class="w-4 h-4 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500"> + class="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
@@ -94,7 +94,7 @@ class="w-4 h-4 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500"> name="anna_domain" list="anna_domain_options" value="" - class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-indigo-500 focus:border-indigo-500" + class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-blue-500 focus:border-blue-500" autocomplete="off" spellcheck="false" maxlength="253"> @@ -111,7 +111,7 @@ class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-ind name="zlib_domain" list="zlib_domain_options" value="" - class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-indigo-500 focus:border-indigo-500" + class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-blue-500 focus:border-blue-500" autocomplete="off" spellcheck="false" maxlength="253"> diff --git a/storage/plugins/mobile-api/views/settings.php b/storage/plugins/mobile-api/views/settings.php index 90db7f0e6..cd9f58e6a 100644 --- a/storage/plugins/mobile-api/views/settings.php +++ b/storage/plugins/mobile-api/views/settings.php @@ -84,47 +84,38 @@ $tabDevicesUrl = htmlspecialchars(url('/admin/plugins/' . $resolvedId . '/settings') . '?tab=devices', ENT_QUOTES, 'UTF-8'); ?> -
+
- -
-
-
-
-
- -
-
-

- -

-

- -

-
-
- - - - -
+ +
+
+

+ + +

+

+ +

+ + + +
-
+
-
- -

+
+ +
-