Skip to content

Commit fa10818

Browse files
committed
Don't regard 1024px width viewport as mobile
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 <jonas@freesources.org>
1 parent cc888d2 commit fa10818

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/css/mobile.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/mobile.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@use 'variables';
22

3-
@media only screen and (max-width: variables.$breakpoint-mobile) {
3+
@media only screen and (width < variables.$breakpoint-mobile) {
44

55
/* position share dropdown */
66
#dropdown {

core/css/server.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)