Skip to content
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

Don't regard 1024px width viewport as mobile #36751

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Feb 16, 2023

Currently we treat 1024px as mobile in some places (e.g. isMobile in nextcloud-vue) and as not mobile yet in others (e.g. in mobile.css).

This commit changes mobile.scss to treat viewports smaller than 1024px as mobile.

This PR accompanies nextcloud-libraries/nextcloud-vue#3768

Both are required to fix
nextcloud-libraries/nextcloud-vue#3758.

  • Resolves: nextcloud/vue#3758

Currently we treat 1024px as mobile in some places (e.g. `isMobile` in
nextcloud-vue) and as not mobile yet in others (e.g. in mobile.css).

This commit changes `mobile.scss` to treat viewports smaller than 1024px
as mobile.

This PR accompanies nextcloud-libraries/nextcloud-vue#3768

Both are required to fix
nextcloud-libraries/nextcloud-vue#3758.

Signed-off-by: Jonas <[email protected]>
@mejo- mejo- added the 3. to review Waiting for reviews label Feb 16, 2023
@mejo- mejo- added this to the Nextcloud 26 milestone Feb 16, 2023
mejo- added a commit to nextcloud-libraries/nextcloud-vue that referenced this pull request Feb 16, 2023
* In IsMobileState.js we treat viewports smaller 1024px as mobile.
* In NcAppContent.vue we treat viewports starting with 1024px as mobile.

This results in weird behaviour with screens that have exactly 1024px
width. E.g., on three-pane apps, NcAppContentList is hidden but the
NcAppDetailsToggle button is not displayed yet.

This commit changes NcAppContent.vue to treat viewports smaller 1024px
as mobile, to be in sync with IsMobileState.js.

This PR accompanies nextcloud/server#36751.

Both are required to fix
#3758.

Fixes: #3758

Signed-off-by: Jonas <[email protected]>
@mejo-
Copy link
Member Author

mejo- commented Feb 16, 2023

/backport to stable25

@max-nextcloud max-nextcloud merged commit d6a3ebc into master Feb 17, 2023
@max-nextcloud max-nextcloud deleted the fix/mobile_breakpoint branch February 17, 2023 14:46
@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants