From 86c022a4cb60b4295ed137c1086402f75e045958 Mon Sep 17 00:00:00 2001 From: FliesentischKing Date: Sun, 18 Oct 2026 16:51:08 +0200 Subject: [PATCH] Preload pending thread media, hide tile hover overlays on click, and avoid stretching view transition snapshots Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- app/assets/css/tailwind.css | 11 ++++++----- app/components/UploadTile.vue | 10 ++++++++-- app/components/VideoPlayer.vue | 2 ++ app/pages/t/[id].vue | 23 +++++++++++++++-------- 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/app/assets/css/tailwind.css b/app/assets/css/tailwind.css index f920a2e..30653ed 100644 --- a/app/assets/css/tailwind.css +++ b/app/assets/css/tailwind.css @@ -1288,19 +1288,20 @@ ::view-transition-group(upload-media) { animation-duration: 380ms; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); + overflow: hidden; + border-radius: var(--radius-md); } ::view-transition-old(upload-media), ::view-transition-new(upload-media) { animation-duration: 380ms; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); /* Neuere Browser zeichnen die Snapshots mit natürlichem Seitenverhältnis - - dann ragt der alte Snapshot bei Aspect-Wechsel (quadratisches Tile -> - breite Thread-Box) unter der Gruppen-Box heraus und das Bild wirkt, als - würde es erst in die falsche Richtung rutschen. Fill + volle Größe zwingt - den Snapshot wieder exakt in die morphierende Box. */ + ohne Clipping ragt der alte quadratische Tile-Snapshot bei breiten + Ziel-Medien unten aus der Gruppe heraus. cover + overflow:hidden auf der + Group hält beide Snapshots unverzerrt exakt in der morphierenden Box. */ width: 100%; height: 100%; - object-fit: fill; + object-fit: cover; } /* Phosphor-Glyphen haben mehr Innenrand im ViewBox als Lucide - diff --git a/app/components/UploadTile.vue b/app/components/UploadTile.vue index 11808dd..5cfa188 100644 --- a/app/components/UploadTile.vue +++ b/app/components/UploadTile.vue @@ -144,8 +144,14 @@ function openUpload(e: MouseEvent) { > -
-
+
+
() @@ -47,6 +48,7 @@ function onLoadedMetadata() {