refactor: rename mobileDevice to mediaQueryManager (#25464)

This commit is contained in:
Min Idzelis
2026-01-23 21:55:10 -05:00
committed by GitHub
parent c2775894e1
commit d0d269677e
11 changed files with 41 additions and 39 deletions
@@ -1,6 +1,6 @@
<script lang="ts">
import { SCROLL_PROPERTIES } from '$lib/components/shared-components/album-selection/album-selection-utils';
import { mobileDevice } from '$lib/stores/mobile-device.svelte';
import { mediaQueryManager } from '$lib/stores/media-query-manager.svelte';
import { getAssetMediaUrl } from '$lib/utils';
import { normalizeSearchString } from '$lib/utils/string-utils.js';
import { type AlbumResponseDto } from '@immich/sdk';
@@ -54,7 +54,7 @@
onMultiSelect();
};
let usingMobileDevice = $derived(mobileDevice.pointerCoarse);
let usingMobileDevice = $derived(mediaQueryManager.pointerCoarse);
let mouseOver = $state(false);
const onMouseEnter = () => {
if (usingMobileDevice) {