mirror of
https://github.com/immich-app/immich.git
synced 2026-02-20 18:20:21 -05:00
fix: safari address bar color (#26346)
This commit is contained in:
parent
208c07af1f
commit
f04efbb714
@ -148,6 +148,10 @@
|
||||
color: #3a3a3a;
|
||||
}
|
||||
|
||||
body.asset-viewer-open {
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
input:focus-visible {
|
||||
outline-offset: 0px !important;
|
||||
outline: none !important;
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user