Skip to content

dont grow items in the app list#2434

Merged
skjnldsv merged 2 commits intomasterfrom
app-list-grow
Dec 3, 2016
Merged

dont grow items in the app list#2434
skjnldsv merged 2 commits intomasterfrom
app-list-grow

Conversation

@icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Dec 1, 2016

This keeps the bottom row nicely alligned

Before:

After:

cc @jancborchardt

fixes #1938

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Dec 1, 2016
@icewind1991 icewind1991 added this to the Nextcloud 11.0 milestone Dec 1, 2016
@mention-bot
Copy link

@icewind1991, thanks for your PR! By analyzing the history of the files in this pull request, we identified @eppfel, @jancborchardt and @ChristophWurst to be potential reviewers.

@schiessle
Copy link
Member

tested, works great! 👍

@schiessle
Copy link
Member

@eppfel maybe you want to review it? Thanks!

@skjnldsv
Copy link
Member

skjnldsv commented Dec 1, 2016

👎
If we have a lower resolution than a multiple of elements per rows, we get empty spaces.
apps nextcloud

@Espina2
Copy link
Contributor

Espina2 commented Dec 1, 2016

I agree @skjnldsv but I prefer to have more space in the right that see the elements misaligned.

@skjnldsv
Copy link
Member

skjnldsv commented Dec 1, 2016

Or we could implement the code I suggested here?
http://codepen.io/kunji/pen/yNPVVb

@schiessle
Copy link
Member

schiessle commented Dec 1, 2016

If we have a lower resolution than a multiple of elements per rows, we get empty spaces.

I'm pretty sure that this is only the case because in your example your window misses a few pixel until there is enough space for a third column. I tried it with zooming in/out of the browser window and it scaled quite well, adding/removing additional columns depending on the space on the right.

@skjnldsv
Copy link
Member

skjnldsv commented Dec 1, 2016

@schiessle No no, it switch at 330px only. Flex without grow is like a float.
kazam_screencast_00000

@schiessle
Copy link
Member

schiessle commented Dec 1, 2016

for me this looks ok, it seems like it switches as soon as there is enough empty space for a additional column.

I consider it a improvement over what we have now...

@jancborchardt
Copy link
Member

jancborchardt commented Dec 2, 2016

The current implementation looks much better on smaller screens, or iPads or whatever. We should only fix this when we can retain that layout. Otherwise we’re just switching the trade-off. 👎

@skjnldsv so do you want to implement that? :)

@skjnldsv
Copy link
Member

skjnldsv commented Dec 2, 2016

@jancborchardt on it!

@eppfel
Copy link
Member

eppfel commented Dec 2, 2016

not, yet
I think you can remove the flex, if you use percentages for the width.
bildschirmfoto 2016-12-02 um 21 11 52

@codecov-io
Copy link

codecov-io commented Dec 2, 2016

Current coverage is 56.92% (diff: 100%)

Merging #2434 into master will decrease coverage by 0.20%

@@             master      #2434   diff @@
==========================================
  Files          1198       1199     +1   
  Lines         72257      73204   +947   
  Methods        7347       7494   +147   
  Messages          0          0          
  Branches       1216       1261    +45   
==========================================
+ Hits          41283      41674   +391   
- Misses        30974      31530   +556   
  Partials          0          0          

Powered by Codecov. Last update 181cf9c...f82a40d

@skjnldsv
Copy link
Member

skjnldsv commented Dec 2, 2016

@jancborchardt @eppfel Done!
Please review @nextcloud/designers

I used a small backstep to 2 column when the sidebar gets hidden in mobile view!

kazam_screencast_00001-2

@skjnldsv
Copy link
Member

skjnldsv commented Dec 2, 2016

@eppfel I had to leave, didn't finished my work ;)

@MorrisJobke
Copy link
Member

Works nicely 👍

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 2, 2016
@eppfel
Copy link
Member

eppfel commented Dec 2, 2016

👍

}
#sessions .token-list td > a.icon,
#apppasswords .token-list td > a.icon {
#apppasswords .token-list td > a.icon {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahahah! :D

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv skjnldsv merged commit cd2c17b into master Dec 3, 2016
@skjnldsv skjnldsv deleted the app-list-grow branch December 3, 2016 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apps not correctly align on apps page

9 participants