-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Files grid view #11573
Files grid view #11573
Conversation
This comment has been minimized.
This comment has been minimized.
7fbe82b
to
7746e7e
Compare
apps/files/css/files.scss
Outdated
} | ||
|
||
/* Position actions menu below file */ | ||
.popovermenu { |
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.
Be careful with your selectors @jancborchardt
You need to be more precise, this one is conflicting with others popovermenus ;)
We should then reduce the total size. |
@jancborchardt Ok, I added a simple var you can change and should adjust the full design automatically. |
Good stuff all around @skjnldsv
|
Edited the top post and added @-assignments to the checklist so we don't do double work. :) Is the split ok @skjnldsv? |
Ah yes! |
I changed quite a lot in the design. For a better visual, the grid is not really square, (not by much though) I think it's really better that way and it allowed me to fix the default action handler properly. I checked some file browsers I use and all of them favour a square icon/preview and the text under than a square element. ;) |
apps/files/css/files.scss
Outdated
@@ -789,7 +789,6 @@ table.dragshadow td.size { | |||
padding: $grid-pad; // same as action icon bottom and right padding | |||
top: 0; | |||
left: 0; | |||
z-index: -1; // make sure the default click is the link |
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.
That's the only way to have back the default handler on the click, if you remove this, the default will be the sidebar again :)
The thumbnail was showing properly on my setup, what was the issue here? 🤔
@jancborchardt
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.
Sorry, meant to comment before:
When logged in, and you opened the sidebar of a file, and then did not hover the file anymore, the thumbnail vanished:
It also resulted in thumbnails not showing on the public share page at all:
Very strange – let me know if you have an idea. It seems we have to do this via JS.
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.
No worries! :)
Yes, this is a tricky one! I'm guessing there is a conflicting css rule here. No need for js! ;)
Basically the hack is to put the thumbnail behind (leaving the default click to the a and therefore the file/folder) and change the background on hover/focus/active to be on children/siblings of the thumbnail and not on parents (otherwise the background will be above the thumbnail, tricky hack, but rather clean on css, we don'te xploit anything, this is a standard css behavior) :)
Could you revert your change? I will fix the public page and the active (seems like something like that) when back from vac ;)
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.
Also, please only work on your parts of the pr, and not revert any other changes I made on purpose, otherwise it's confusing for me and I have to get back to what you edited to figure what's going on 🤗
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.
Yes – my bad, sorry about that. Reverted the commit and also rebased onto master. :)
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.
Don't be sorry! This was a tricky one ;)
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Please also review @nextcloud/designers :) |
…dview-table Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
All fixed aside from the ff issue. |
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
BAM right in the bullseye! :D |
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 awesome and works nicely 👍
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 great. 🚬-test did not do 💥
Lets get it in now and fix issues (I'm sure we'll find them) later.
CI failures are unrelated -> merge |
Yeah @skjnldsv great teamwork! 🎉 😃 |
You could make the icons stack on the right, which each one just a few pixels more to the left. On mouseover (or touch on mobile), the icons expand. That way there is more place for the file‘s Name by default and no icon really hidden. |
Supersedes #11050, fixes #6
Still todo:
data-preview-x="250"
are set in the table.z-index: -1;
on the.thumbnail-wrapper
did not work for clickability cause it resulted in the thumbnail vanishing in certain cases (see inline discussion)Separate server issues not to be solved here:
Done:
@skjnldsv
icon-toggle-pictures
andicon-toggle-filelist
@jancborchardt
@skjnldsv
tooltip()
for icon@skjnldsv
@skjnldsv
@jancborchardt
@skjnldsv
@skjnldsv
@jancborchardt
@jancborchardt
@jancborchardt
tr class="summary"
in the footer @jancborchardt