-
Notifications
You must be signed in to change notification settings - Fork 65
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
Adds flickr style gradient to the gallery images. #456
Conversation
What do you think @oparoz @owncloud/designers? @raghunayyar can you post a screenshot so more people can review directly? |
I haven't looked in details yet. I'm a bit worried about the new width, height and positioning of the element, because it may interfere with future work, so it will take a bit of time to get that checked. |
@raghunayyar nice! How's it on a brighter image? |
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
transition: opacity 200ms linear; |
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.
Indentation ;)
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.
I have to figure out things with Atom. lol, will push the fix asap.
ae96f60
to
be343a1
Compare
@jancborchardt usual state |
@raghunayyar Would it be possible to see the same images with the current style (pre-PR)? I know it's a bit of work, but it would be great to be able to quickly see the difference when looking at the before and after picture for both the standard and hovered state. |
Looks awesome! :) |
Just tested this and it looks quite awesome, way better than the current approach. However, 3 grave problems:
|
Thanks for testing. I was afraid the div changes would break stuff... Hopefully there is a way around that. |
I guess just changing the opening handler would fix it. But I’m not JS-savvy enough to be sure. ;) |
@jancborchardt will look into it asap. |
@jancborchardt fixed all the issues, do you want to fine tune the gradient? cc @oparoz |
@oparoz that problem should be fixed if @raghunayyar fixed the ellipsis and forcing the filename display to one line. Then the filename will be shown on the bottom of the fade where it’s enough contrast. |
@raghunayyar I apologise, looking at your code, I realised some of my changes had been merged against the wrong branch. Can I ask you to rebase? Since the change is mainly about grouping all the HTML in a template, it should be easy for you to make the small adjustments. @jancborchardt The problem is not fixed by the title expansion, because the screenshot I've posted is of the extended title. I haven't checked if the gradient expands with the title. If not, then it should. If yes, then the gradient should fade away a bit higher. |
If there is a longer title, it is either visible in the detail view, or should at most show as a tooltip. It should not result in the name extending to more rows than one in the overview. Ok? |
It's not the current behaviour, but could be addressed in a separate PR, yes. |
Right, but then the issue you mention above should not be taken into account for this PR if we fix it in a different one anyway. ;) |
42e8cc6
to
4b14bb2
Compare
@oparoz I have rebased my branch, do you want to tweak the gradient? cc @jancborchardt |
} | ||
|
||
#gallery .item-container .image-label .title:hover { | ||
#gallery .item-container .image-label .title:hover. |
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.
Typo
@raghunayyar - Thanks for the rebase. No need to take care of the gradient since it's been decided to go with a tooltip. |
@raghunayyar also please squash your commits into one. |
If someone wants to look at other ways of doing this. |
Why don’t we have the click handler on the label? |
The container would probably be more appropriate, now that we have one. |
But it has to be created from scratch since we were simply using anchors |
4b14bb2
to
41e1478
Compare
41e1478
to
b87aaf1
Compare
Can we merge this since all the discussed stuff has been fixed. |
Not with the change of element order as it would need to be reverted in the future. What we can do is wait for a PR changing the handler to be merged before merging this one. |
So what’s the plan of action here so we move forward @oparoz @raghunayyar? |
|
@raghunayyar can you implement what @oparoz described above then? :) |
@jancborchardt @oparoz I am occupied with calendar at the moment, can you take care, please? |
Renamed click handler for albums. (_openAlbum) Cherry picked label gradients from owncloud#456. Refactored links so they are not hidden by other elements.
Added click handler for images. (_openImage) Renamed click handler for albums. (_openAlbum) Cherry picked label gradients from owncloud#456. Refactored links so they are not hidden by other elements.
Added click handler for images. (_openImage) Renamed click handler for albums. (_openAlbum) Cherry picked label gradients from owncloud#456. Refactored links so they are not hidden by other elements.
Added click handler for images. (_openImage) Renamed click handler for albums. (_openAlbum) Cherry picked label gradients from owncloud#456. Refactored links so they are not hidden by other elements.
Closing as this has been added to the 9.1-next branch: ee073c9 |
Thank you for your contribution! |
Nice! |
As we discussed at the conference (#286), we wanted to use gradients which are something on the lines of Flickr. I have added the exact same gradient here as of now. @jancborchardt would you like to tweak it a bit so that it satisfies all our corner cases?