From 8909e02ddc2c334b38316c8a09aa26817e019762 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Wed, 27 May 2026 19:21:28 +0200 Subject: [PATCH] fdsa --- public/s/css/f0ckm.css | 9 --------- public/s/js/f0ckm.js | 7 ++++++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/public/s/css/f0ckm.css b/public/s/css/f0ckm.css index 4f11e80..3c9b489 100644 --- a/public/s/css/f0ckm.css +++ b/public/s/css/f0ckm.css @@ -2575,21 +2575,12 @@ body.layout-legacy #comments-container.faded-out { .cf-attachment.cf-image img { max-width: 300px; - max-height: 220px; object-fit: contain; - border: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer; - transition: opacity 0.15s; -} - -.cf-attachment.cf-image img:hover { - opacity: 0.85; } .cf-attachment.cf-video video { max-width: 400px; - max-height: 280px; - border: 1px solid rgba(255, 255, 255, 0.08); } .cf-attachment.cf-audio audio { diff --git a/public/s/js/f0ckm.js b/public/s/js/f0ckm.js index f4bde08..091fc90 100644 --- a/public/s/js/f0ckm.js +++ b/public/s/js/f0ckm.js @@ -6040,7 +6040,12 @@ class NotificationSystem { const container = window.commentSystem.container; const isAttached = container && document.contains(container); const userTyping = isAttached && container.querySelector('textarea:focus, input:focus'); - if (isAttached && !userTyping) { + // Also skip if a file upload is in progress (e.g. mobile: file picker dismisses + // keyboard so textarea loses focus, but _pendingUploads is still set). + const hasPendingUpload = isAttached && Array.from( + container.querySelectorAll('.comment-input') + ).some(wrap => (wrap._pendingUploads || 0) > 0); + if (isAttached && !userTyping && !hasPendingUpload) { // Kill the stabilization ResizeObserver SYNCHRONOUSLY before anything else. // If it's still alive from the initial anchor-load, it will fire when the // browser repaints the tab and re-scroll to the comment — that's the bug.