-
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
Make container view looks proportional on viewport #1700
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Git'Fellow <[email protected]>
/backport to stable29 |
/backport to stable28 |
Signed-off-by: Git'Fellow <[email protected]>
1 flaky test on run #1584 ↗︎
Details:
cypress/e2e/sidebar.cy.ts • 1 flaky test • Run E2E
Review all test suite changes for PR #1700 ↗︎ |
src/views/ActivityAppFeed.vue
Outdated
margin: 0 auto; | ||
padding-inline: 12px; | ||
// Align with app navigation toggle | ||
margin: var(--app-navigation-padding, 8px) 0 0 calc(2 * var(--app-navigation-padding, 8px) + 44px); |
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.
margin: var(--app-navigation-padding, 8px) 0 0 calc(2 * var(--app-navigation-padding, 8px) + 44px); | |
margin: var(--app-navigation-padding, 8px) 0 0 calc(2 * var(--app-navigation-padding, 8px) + var(--default-clickable-area)); |
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.
But we should also add a variable or component for that to not calculate it all the time in each app...
I'll do it later today.
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 problem; same code a few lines down.
src/views/ActivityAppFeed.vue
Outdated
padding-inline: 12px; | ||
// Align with app navigation toggle | ||
margin: var(--app-navigation-padding, 8px) 0 0 calc(2 * var(--app-navigation-padding, 8px) + 44px); | ||
padding-inline: 0 44px; |
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.
If this padding is defined by the a button size
padding-inline: 0 44px; | |
padding-inline: 0 var(--default-clickable-area); |
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.
This was done on purpose to make the list look like a list, as on bigger screens it becomes unreadable otherwise.
Same layout like e.g. on forms or others.
So the list is centered and fixed width. But I agree the scrollbar currently looks not good and should be moved to the very right instead directly next to the centered list.
With this changes it looks really weird and unreadable on wide screens, so I would request a review of @nextcloud/designers
before | with this |
---|---|
Well, we think the same but with current implementation 😄 I think the problem is that the date is floating right of the activity line. If they all (activity and date) were aligned left, i think this would be the best option. Should this be validated, i could work on that if no one wants to do that. But, a centered and fixed width doesn't seem the best option IMHO. |
That's why I cc the designers. We use the same layout also in Talk, Announcement Center, and Forms so basically all apps that are "lists" content wise |
Not really the same. Styles are local here and it looks different. For example, we don't have a scroll bar in the middle of content in Talk. It's on the corner. |
What about adding a light border between items, so it's easy to connect time and item visually? |
@ShGKme please feel free to take the lead on this one 👍 |
Yes as I wrote this is a bug currently but the limited width is on design purpose (see also current settings changes).
|
Signed-off-by: Grigorii K. Shartsev <[email protected]>
Width should be 900px. If possible NcAppSettingsSection should be user. Your proposal looks good @ShGKme |
I'd not use We can just use the same design here or introduce a new component. |
Many already do... Do you think that then it would make sense to create an ad hoc component there that all app developers can use? |
@marcoambrosini Do you mean
Do you have an example? |
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
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.
Fully agree with @susnux here, the scrollbar hanging next to the text is not by design and it should be all the way on the right.
@ShGKme your proposal looks good, but the content should still be visually centered. Especially on bigger screens the left-alignment looks strange. (Something we need to fix in Settings as well.)
@jancborchardt settings should be left aligned as the sidebar is a integral part of the content and on a big screen they get too separated. That is unless we're able to center the navigation too See the following screenshot as a reference. Granted: it's not great, but think about if the main content was centered |
IMO, the centered content looks strange, as everything else is left aligned... 😄 |
@jancborchardt @marcoambrosini This PR is open for quite a long time, and comments from the design team are different. Are you against this open (settings like, limited width on the left with scroll bar on the right)? |
@ShGKme my comment was only concerning settings. I would prefer if there we kept the left alignment |
@ShGKme so to clarify, for Activity:
|
Additionally actually: The heading "All activities" (or the others) would also look better if it’s left aligned with the centered content, instead of all the way on the left. |
On big screen resolution, actual implementation with fixed with looks like an iframe.
Make it fluid and align with other items on screen.
Before
After