fix: safari address bar color (#26346)

This commit is contained in:
Jason Rasmussen
2026-02-19 10:40:13 -05:00
committed by GitHub
parent 208c07af1f
commit f04efbb714
2 changed files with 13 additions and 0 deletions

View File

@@ -148,6 +148,10 @@
color: #3a3a3a;
}
body.asset-viewer-open {
background-color: black;
}
input:focus-visible {
outline-offset: 0px !important;
outline: none !important;

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import { browser } from '$app/environment';
import { goto } from '$app/navigation';
import { focusTrap } from '$lib/actions/focus-trap';
import type { Action, OnAction, PreAction } from '$lib/components/asset-viewer/actions/action';
@@ -147,6 +148,7 @@
};
onMount(async () => {
syncAssetViewerOpenClass(true);
unsubscribes.push(
slideshowState.subscribe((value) => {
if (value === SlideshowState.PlaySlideshow) {
@@ -177,6 +179,7 @@
activityManager.reset();
assetViewerManager.closeEditor();
syncAssetViewerOpenClass(false);
});
const handleGetAllAlbums = async () => {
@@ -359,6 +362,12 @@
}
});
const syncAssetViewerOpenClass = (isOpen: boolean) => {
if (browser) {
document.body.classList.toggle('asset-viewer-open', isOpen);
}
};
const refresh = async () => {
await refreshStack();
await handleGetAllAlbums();