#244 Reverse metadata field defaults

This commit is contained in:
Alan Grainger
2026-06-05 10:50:16 +12:00
parent 2390d0eb74
commit 7799fa71c9
11 changed files with 246 additions and 107 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import type { InitParams } from '../shared/types.js'
import { state } from './state.js'
import { setupToolbar } from './selection.js'
import { initLightbox, openLightbox } from './lightbox.js'
import { computeLayoutAndRender, onScroll } from './virtualization.js'
import { computeLayoutAndRender, onScroll } from './virtualisation.js'
function readInitParams (): InitParams {
const el = document.getElementById('ipp-init')
+2 -2
View File
@@ -1,6 +1,6 @@
// Justified-rows + square-grid layout, with optional month grouping. Pure
// geometry: takes a container width, returns positions for every tile and
// every header. Called by virtualization on first render and on resize.
// every header. Called by virtualisation on first render and on resize.
import {
state,
@@ -26,7 +26,7 @@ export interface LayoutResult {
* for the gallery at the given container width.
*
* Reads `state.items` and `state.groupByDate`. Output is pure data - the
* caller (virtualization) is responsible for actually placing DOM nodes
* caller (virtualisation) is responsible for actually placing DOM nodes
* according to the returned positions.
*
* Switches between a mobile square grid (under MOBILE_BREAKPOINT) and the
+1 -1
View File
@@ -15,7 +15,7 @@ function onThumbError (this: HTMLImageElement) {
}
// Cache of decoded thumbhash → PNG data URL. Same thumbhash on multiple
// tile-creations (revisits during virtualization) reuses the same URL.
// tile-creations (revisits during virtualisation) reuses the same URL.
const thumbhashCache = new Map<string, string | null>()
function decodeThumbhash (base64: string): string | null {