mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 01:29:04 +03:00
fix: safari address bar color (#26346)
This commit is contained in:
@@ -148,6 +148,10 @@
|
|||||||
color: #3a3a3a;
|
color: #3a3a3a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.asset-viewer-open {
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
input:focus-visible {
|
input:focus-visible {
|
||||||
outline-offset: 0px !important;
|
outline-offset: 0px !important;
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { browser } from '$app/environment';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import { focusTrap } from '$lib/actions/focus-trap';
|
import { focusTrap } from '$lib/actions/focus-trap';
|
||||||
import type { Action, OnAction, PreAction } from '$lib/components/asset-viewer/actions/action';
|
import type { Action, OnAction, PreAction } from '$lib/components/asset-viewer/actions/action';
|
||||||
@@ -147,6 +148,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
|
syncAssetViewerOpenClass(true);
|
||||||
unsubscribes.push(
|
unsubscribes.push(
|
||||||
slideshowState.subscribe((value) => {
|
slideshowState.subscribe((value) => {
|
||||||
if (value === SlideshowState.PlaySlideshow) {
|
if (value === SlideshowState.PlaySlideshow) {
|
||||||
@@ -177,6 +179,7 @@
|
|||||||
|
|
||||||
activityManager.reset();
|
activityManager.reset();
|
||||||
assetViewerManager.closeEditor();
|
assetViewerManager.closeEditor();
|
||||||
|
syncAssetViewerOpenClass(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleGetAllAlbums = async () => {
|
const handleGetAllAlbums = async () => {
|
||||||
@@ -359,6 +362,12 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const syncAssetViewerOpenClass = (isOpen: boolean) => {
|
||||||
|
if (browser) {
|
||||||
|
document.body.classList.toggle('asset-viewer-open', isOpen);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const refresh = async () => {
|
const refresh = async () => {
|
||||||
await refreshStack();
|
await refreshStack();
|
||||||
await handleGetAllAlbums();
|
await handleGetAllAlbums();
|
||||||
|
|||||||
Reference in New Issue
Block a user