Skip to content

High performance self-hosted photo and video management solution.

fix(web): remove unused props (#32016)

Mees Frensel051d87df49d3
diff --git a/web/src/lib/components/shared-components/gallery-viewer/GalleryViewer.svelte b/web/src/lib/components/shared-components/gallery-viewer/GalleryViewer.svelte
index 5a4b25225f..4b0479fb13 100644
--- a/web/src/lib/components/shared-components/gallery-viewer/GalleryViewer.svelte
+++ b/web/src/lib/components/shared-components/gallery-viewer/GalleryViewer.svelte
@@ -37,7 +37,6 @@
assets: AssetResponseDto[];
viewerAssets?: AssetResponseDto[];
assetInteraction: AssetMultiSelectManager;
- disableAssetSelect?: boolean;
showArchiveIcon?: boolean;
viewport: Viewport;
onEndReached?: (() => void) | undefined;
@@ -53,7 +52,6 @@
assets = $bindable(),
viewerAssets,
assetInteraction,
- disableAssetSelect = false,
showArchiveIcon = false,
viewport,
onEndReached = undefined,
@@ -351,7 +349,6 @@
{@const currentAsset = toTimelineAsset(asset)}
<div class="absolute" style:overflow="clip" style={getStyle(index)}>
<Thumbnail
- readonly={disableAssetSelect}
onClick={() => {
if (assetInteraction.selectionActive) {
handleSelectAssets(currentAsset);
diff --git a/web/src/lib/components/timeline/Timeline.svelte b/web/src/lib/components/timeline/Timeline.svelte
index b2d5d46027..c368f1489d 100644
--- a/web/src/lib/components/timeline/Timeline.svelte
+++ b/web/src/lib/components/timeline/Timeline.svelte
@@ -90,7 +90,6 @@
$effect(() => options && void timelineManager.updateOptions(options));
let scrollableElement: HTMLElement | undefined = $state();
- let timelineElement: HTMLElement | undefined = $state();
let invisible = $state(true);
// The percentage of scroll through the month that is currently intersecting the top boundary of the viewport.
// Note: There may be multiple months visible within the viewport at any given time.
@@ -613,12 +612,7 @@
bind:this={scrollableElement}
onscroll={() => (handleTimelineScroll(), timelineManager.updateSlidingWindow(), updateIsScrolling())}
>
- <section
- bind:this={timelineElement}
- id="virtual-timeline"
- class:invisible
- style:height={timelineManager.totalViewerHeight + 'px'}
- >
+ <section id="virtual-timeline" class:invisible style:height={timelineManager.totalViewerHeight + 'px'}>
<section
bind:clientHeight={timelineManager.topSectionHeight}
class:invisible