Frontend: Proof of concept for image preview #2266
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#2266
Loading…
Reference in New Issue
No description provided.
Delete Branch "Elscrux/vikunja:feature/image-preview"
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?
Adds a proof of concept preview for all images inside the task itself (not related to the cover image feature). Basically it is very convenient to show all images in a task when you click on it, rather than having to individually open images when you search for a specific one or if you want to get a quick overview.
This implementation shows how it could work, but is probably not the best way to do it. Please let me know what you think!
Hi Elscrux!
Thank you for creating a PR!
I've deployed the frontend changes of this PR on a preview environment under this URL: https://2266-feature-image-preview--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/.
This preview does not contain any changes made to the api, only the frontend.
Have a nice day!
Needs some styling, but I like the idea!
@ -67,6 +67,12 @@
{{ a.file.mime }}
</span>
</p>
<img
I would extract this out into its own component, which takes the attachment, fetches the image and shows it next to the attachment. We could extend this further to show some kind of icon for pdfs or other file types later on.
Good point, I did that
It also seems like the preview is not shown when the file is initially uploaded.
4da881aa99
tobe50d3d7b3
WIP: Frontend: Proof of concept for image previewto Frontend: Proof of concept for image preview@konrad
This should be fixed now.
I styled it in a way so it's displaying like a table. I'm not super used to doing styling so please feel free to touch this up :)