Use a trash button to remove a slide image
With JavaScript the "remove image" checkbox is replaced by a button with a trash icon that toggles the same checkbox, dims the preview and announces the pending removal. Without JavaScript the checkbox still works. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a395b50894
commit
8522918c75
3 files changed
+51
-7
No files matched your search
@@ -800,4 +800,8 @@ body:has(dialog[open]) { overflow: hidden; }
|
||||
.image-fields > legend { font-weight: 600; padding: 0; margin-bottom: .5em; }
|
||||
.image-fields__layout > legend { padding: 0; margin-bottom: .25em; }
|
||||
.image-fields__current { margin: 0 0 .75em; }
|
||||
.image-fields__current.is-removed img { opacity: .3; filter: grayscale(1); }
|
||||
.image-fields__remove { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 1em; }
|
||||
.image-fields__remove .button { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.image-fields__remove .hint { margin: 0; }
|
||||
.image-fields__current img { display: block; max-width: 100%; max-height: 180px; width: auto; height: auto; border-radius: 6px; }
|
||||
Reference in new issue
Block a user