Conversation
jancborchardt
left a comment
There was a problem hiding this comment.
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? |
julien-nc
left a comment
There was a problem hiding this comment.
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
marcoambrosini
left a comment
There was a problem hiding this comment.
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 😅 |
Width of text, like on Medium etc. :) |
@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. |
julien-nc
left a comment
There was a problem hiding this comment.
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 <[email protected]>
* 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 <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
06210ca to
27f98cb
Compare
Summary
Should be able to remove images inside text when hovering over them.