-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add thumbnail preview section to issue attachments #13826
Conversation
I was thinking of hiding the thumbnail if the image was already displayed inline in the content, but couldn't figure out the best way to detect that, so this is what I've got so far |
Codecov Report
@@ Coverage Diff @@
## master #13826 +/- ##
=======================================
Coverage 42.22% 42.23%
=======================================
Files 710 710
Lines 77232 77233 +1
=======================================
+ Hits 32611 32617 +6
- Misses 39246 39250 +4
+ Partials 5375 5366 -9
Continue to review full report at Codecov.
|
we potetial could use search the issue/comment content for atatchemnt uuid before disply preview. this uuid strings should be uniqe enouth ... |
Thumbnails may should have the same height and width. |
…can test if the image has already been displayed
… in the content body)
I written what I think needs doing in psudo code (see commit b700c11) but I cant work out how to actually implement it |
works sofar only if you edit stuff the view is kind a broken - after reload it works as is should |
Looks like some js is expecting the old layout... think I've found it, just testing now |
I had moved some duplicate html ( Also hidden thumbnails were reappearing during js update so I had to modify the router to use the new template functionality Think its looking good now :) Still want to look at limiting image height/width ratio next.. |
So at the moment image thumbnail uses the fomantic-ui I've ended up using And is using a hardcoded 150px a good idea, its meant to match fomantic-ui |
lint failing |
I think I worked out the best place to put the CSS, please check: acc5ad9 Also I removed a CSS block that I think is no longer used, the @6543 will check the lint issue now... |
If there is no attachment, just remove the divider. |
OK, I think I'm happy with this now :) |
Anything more I need to do for this? |
no just wait for a second review - and hit "Update branch" some times ... |
Closes #13786
This PR restores the image attachment preview thumbnails that were removed in #6089 but keeps the awesome filename/size list that was added in that PR.