mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 17:01:13 +03:00
Review comments
This commit is contained in:
@@ -128,9 +128,9 @@
|
||||
}
|
||||
};
|
||||
|
||||
let isTrashEnabled = $derived($featureFlags.loaded && $featureFlags.trash);
|
||||
let isEmpty = $derived(timelineManager.isInitialized && timelineManager.months.length === 0);
|
||||
let idsSelectedAssets = $derived(assetInteraction.selectedAssets.map(({ id }) => id));
|
||||
const isTrashEnabled = $derived($featureFlags.loaded && $featureFlags.trash);
|
||||
const isEmpty = $derived(timelineManager.isInitialized && timelineManager.months.length === 0);
|
||||
const idsSelectedAssets = $derived(assetInteraction.selectedAssets.map(({ id }) => id));
|
||||
let isShortcutModalOpen = false;
|
||||
|
||||
const handleOpenShortcutModal = async () => {
|
||||
|
||||
@@ -135,6 +135,8 @@
|
||||
// Tracks if we found the month intersecting the viewport top
|
||||
let foundIntersectingMonth = false;
|
||||
|
||||
// loop starts at -1, which represents lead-in
|
||||
// loops ends at months.length + 1, representing lead-out
|
||||
for (let i = MONTH_LOOP_START; i < getMonthLoopEnd(monthsLength); i++) {
|
||||
const monthSection = getMonthSection(i);
|
||||
const nextRemainingDistance = remainingScrollDistance - monthSection.height * maxScrollPercent;
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
let { onAfterUpdate }: Props = $props();
|
||||
|
||||
onMount(() => {
|
||||
if (import.meta && import.meta?.hot) {
|
||||
import.meta.hot?.on('vite:afterUpdate', onAfterUpdate);
|
||||
return () => import.meta.hot?.off('vite:afterUpdate', onAfterUpdate);
|
||||
if (import.meta && import.meta.hot) {
|
||||
import.meta.hot.on('vite:afterUpdate', onAfterUpdate);
|
||||
return () => import.meta.hot && import.meta.hot.off('vite:afterUpdate', onAfterUpdate);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -32,7 +32,7 @@ export class DayGroup {
|
||||
this.monthGroup = monthGroup;
|
||||
this.day = day;
|
||||
this.groupTitle = groupTitle;
|
||||
this.groupTitleFull = groupTitle;
|
||||
this.groupTitleFull = groupTitleFull;
|
||||
}
|
||||
|
||||
get top() {
|
||||
|
||||
Reference in New Issue
Block a user