On a phone, no "No files" box above an item that has none

The files sit over the text on a phone, so an item without any showed a box
saying so before its text. Nothing is shown now; the desktop files pane already
hid itself when empty.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-18 14:50:36 +00:00
parent 9c16408d04
commit 53341264a7
3 changed files with 22 additions and 1 deletions

View File

@@ -227,7 +227,9 @@ function showDetail(e){
if(files) files.innerHTML='<p class="empty">No files</p>';
return;
}
const encs=e.enclosures.map(encBox).join('')||'<p class="empty">No files</p>';
// Nothing when there are no files: the pane that would say so is hidden above, and on a phone,
// where the files sit over the text, a box saying "No files" only pushed the text down.
const encs=e.enclosures.map(encBox).join('');
// A phone has no room for the files pane, so the files go above the text there instead.
// Below it, a long set of show notes pushed play and delete screens down, and on an iPhone
// it looked as if a downloaded file could not be deleted at all (issue #21).