aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/messages.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/messages.js')
-rw-r--r--src/features/messages.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/features/messages.js b/src/features/messages.js
index 0f8c78a..350ad7e 100644
--- a/src/features/messages.js
+++ b/src/features/messages.js
@@ -14205,10 +14205,12 @@ export function messagesFeature(ctx) {
if (missing.length) warmTileThumbs(missing).then(() => queueTileThumbs(missing.filter((u) => !tileThumbs.has(u))));
}
if (mediaMode === 'videos') for (const it of items.slice(0, 24)) preconnect(playSrc(it.url));
- // wide clips only (a wide screen, not "All shapes"): one to a row, wide
- // posters, not slivers of them cut to portrait tiles (Adam, 2026-10-22)
- const wideRows = mediaMode === 'videos' && !clipsAll() && !screenTall();
- return h('div', { class: 'media-grid' + (wideRows ? ' wide' : ''), 'data-key': 'media-grid:' + mediaMode },
+ // The tiles take the clips' shape (Adam, 2026-10-22): wide clips only (a
+ // wide screen) go one to a row, their posters whole, not slivers cut to
+ // portrait tiles; every shape ("All shapes") goes three across in
+ // squares; tall ones only (a phone held upright) keep the tall tiles.
+ const shape = mediaMode !== 'videos' ? '' : clipsAll() ? ' square' : screenTall() ? '' : ' wide';
+ return h('div', { class: 'media-grid' + shape, 'data-key': 'media-grid:' + mediaMode },
...items.map((it) => {
const k = mediaKey(it);
// a video tile shows a still at once: kept, given, or the server's