Closes #19591: Establish dedicated tab for image attachments (#19919)

* Initial work on #19591

* Ignore images cache directory

* Clean up thumbnails layout

* Include "add attachment" button

* Clean up ObjectImageAttachmentsView

* Add html_tag property to ImageAttachment

* Misc cleanup

* Collapse .gitignore files for /media

* Fix conditional in template
This commit is contained in:
Jeremy Stretch
2025-07-31 16:22:04 -04:00
committed by GitHub
parent 40dd36812c
commit 9a2fab1d48
13 changed files with 119 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -81,6 +81,14 @@ img.plugin-icon {
height: auto;
}
// Image attachment thumbnails
.thumbnail {
max-width: 200px;
img {
border: 1px solid #606060;
}
}
body[data-bs-theme=dark] {
// Assuming icon is black/white line art, invert it and tone down brightness
img.plugin-icon {