-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat(NcAppContent): add mobileLayout
prop
#6364
base: master
Are you sure you want to change the base?
feat(NcAppContent): add mobileLayout
prop
#6364
Conversation
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
7635b2e
to
9b6f558
Compare
mobileLayout
prop to NcAppContentmobileLayout
prop to NcAppContent
Any thoughts or feedback here? @ShGKme @raimund-schluessler |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6364 +/- ##
==========================================
+ Coverage 42.26% 42.50% +0.23%
==========================================
Files 155 156 +1
Lines 3996 4028 +32
Branches 1001 1038 +37
==========================================
+ Hits 1689 1712 +23
- Misses 2199 2200 +1
- Partials 108 116 +8 ☔ View full report in Codecov by Sentry. |
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.
Thanks, can be useful.
Please, fix linting issues like trailing spaces and commas.
&:not(.splitpanes--horizontal-mobile) { | ||
.splitpanes__pane-list{ | ||
@media only screen and (width < $breakpoint-mobile) { | ||
display: none; | ||
} | ||
} |
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.
Let's control it in JS instead as it was.
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.
it was controlled with css before on lines 411-413 of the old file:
.splitpanes__pane {
...
&-list {
...
@media only screen and (width < $breakpoint-mobile) {
display: none;
}
}
}
I could change it to javascript though if you think that is clearer
mobileLayout
prop to NcAppContentmobileLayout
prop
Thanks for taking a look! Will do! |
Signed-off-by: Devlin Junker <[email protected]>
I think it looks very nice, but i remember when we discussed this feature, it was proposed to be shown only on big screens and not on mobile. So, looping @jancborchardt @nimishavijay @marcoambrosini to decide if this should go in. |
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'd be fine if this is an option on desktop indeed, as Greta mentioned. Just like it's done in Mail already.
But this doesn't seem to be a common pattern on mobile? There's too little space to have 2 different scrolling areas and it will lead to confusion and e.g. accidentally messing with the split.
@jancborchardt @GretaD in an app like nextcloud/news it is useful to see both the list and chosen item at the same time on mobile so that you can navigate between the items and not have to do multiple clicks to select the next item to read.
If you test it out in the PR I linked above, it is very difficult to accidentally change the split height instead of scroll. Since this new property defaults to |
I think that having 2 stacked scroll containers on a phone screen is bound to lead to bad UX consequences. |
☑️ Resolves
horizontal-split
layout for mobile devices. This can be useful if you want to still see the list and details at the same timeno-split
still so no change for callers that don't pass in themobileLayout
property🖼️ Screenshots
🚧 Tasks
mobileLayout
propertyhorizontal-split
option formobileLayout
property🏁 Checklist
- [ ] 3️⃣ Backport tonext
requested with a Vue 3 upgrade