[bug] thumbnails overflowing with more than one attachment #456
Labels
No labels
a11y
Bug
Bug fix
cannot reproduce
CSS
Documentation
enhancement
Feature
Feature request
Held for next release cycle
Minor change
performance
priority: critical
priority: high
priority: low
priority: medium
priority: patch welcome
regression
Translation/Locale
WIP
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma-fe#456
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version
3.12.0
What were you trying to do?
look at my akkoma
What did you expect to happen?
it look not broken like before (3.10.0)
What actually happened?
image thumbnails are overflowing when there are more than one images
Severity
I can manage
Have you searched for this issue?
I guess this went unnoticed because it’s not too apparent if each row has the same amount of images.
Just removing the
min-height: 200pxsetting added in the attachment alt fix, or reverting it toheight: 200pxgets rid of the overflow. But I assume it was added for a reason ine1b4d8f59a.This actually also changes how images are displayed. With the current state it zooms into just a part of the image, with it unset or using
heightthe full image is scaled down to fit into the preview box.Note,
min-heightwas actuallly already unset for notifications inbetween the release and subsequent hotfix frontend release inc2db0e66efcc @Riedler, what issue with previews was
min-heightmeant to solve again and any ideas how to best fix it?argh I was dreading something like this. I will reiterate that this whole set of components should be rewritten from the ground up, it's a whole mess… The attachment system is in my opinion the most complex piece of frontend code in akkoma =~=
I can't remember for sure why I added
min-heightbut if my guess is correct, it's aboutheightsetting a default height (duh) which will restrict the content inside from growing the container instead of overflowing it.Sidenote but during testing just now I found out there's a bug I didn't catch last time (only happens with
height, but definitely unrel to why I addedmin-in the first place) - in some circumstances, the.placeholder-container>pelement will not fill the entire width. To fix this, we can putwidth:100%;box-sizing:border-boxon thepelement. Should be done in the same PR since it's a really minor fix.I would personally fix this but unfortunately I don't have the time rn. Sorry!
I think it's safe to remove
min-heightin favour ofheight, but please test all of these corner-cases both for regular galleries and.-type-unknownattachments before merging:should be fixed by #459, but more real-world testing before merge welcome