-
Notifications
You must be signed in to change notification settings - Fork 95
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 image removing on hover #1872
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good design-wise. As mentioned, as soon as the button component comes, would be best to do it with that (to make sure it works on all sorts of colors of images):
nextcloud-libraries/nextcloud-vue#1808 cc @marcoambrosini
3ae56c5
to
9a4cabd
Compare
How to do that on mobile? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Built files are included in this repo (in js/
). Please include the changed compiled files in the PR.
9a4cabd
to
3c669e2
Compare
@jancborchardt Should we just always show the icon for mobile and keyboard navigation? |
@juliushaertl we could, but:
|
OK, fine with me then. |
@jancborchardt @juliushaertl How about showing/hiding the icon on click/click-outside? As we would keep the hover events, click events would only be effective in a mobile context. |
7c63cb0
to
54eea5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I just thought about: design-wise, wouldn't it be better if the x
button was centered on the upper right corner of the image?
Sounds good @eneiluj
Yep @marcoambrosini – actually why isn’t the image shown in full-width anyway @juliushaertl @luka-nextcloud? :) |
|
Not sure if you mean the width of the text or the width of the page of the window. Former case is fine, but with the latter, 4/3 and 16/9 landscape oriented images would not fit in the window on 16:9 displays, so you'll have to scroll on images to reveal their upper and lower parts, which is a bit annoying. |
Wrong button, sorry 😅 |
@jancborchardt @juliushaertl Do you also want to show a small tiny image as full width? |
No, we should only show it full width if the image size allows, smaller images should not be upscaled. |
I think the image size was fixed with #2002. So my understanding is that this is good to go. |
31af611
to
3699ad4
Compare
I rebased everything on current master. I updated |
I resolved all conversations that seemed to have been addressed. |
0b5e416
to
45cd4fc
Compare
@luka-nextcloud It fails on my side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't find getPos in ImageView.
@luka-nextcloud @azul I found a fix. What's the best way to push it in your opinion?
|
👍 for that ;) |
45cd4fc
to
fac9196
Compare
fac9196
to
b341a1b
Compare
b341a1b
to
06210ca
Compare
Signed-off-by: Luka Trovic <luka@nextcloud.com>
* Update vue-jest to the current. * Update vue-material-design-icons to the latest. * specify `transformIgnorePatterns` in jest config to ensure files in vue-material-design-icons are transformed By default vue-jest ignores all files in node_modules. So we need to be a bit more specific. Signed-off-by: Azul <azul@riseup.net>
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
06210ca
to
27f98cb
Compare
Summary
Should be able to remove images inside text when hovering over them.