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

Hide Mobile Sidebar on desktop site #13135

Merged

Conversation

justju
Copy link
Contributor

@justju justju commented Jul 4, 2018

fixes #12531

This just adds the hide-on-large-only to the mobile-top-menu, to prevent it from being visible on the desktop site. This is equivalent to the mobile-left-menu which already has this class. See: _menu.twig:L47

…so used for the mobile-left-menu. This prevents the mobile-top-menu from briefly being shown in the desktop version, when clicking the invisible 10px area on the right side.
@Findus23 Findus23 added the Needs Review PRs that need a code review label Jul 4, 2018
…et' class. This prevents the leftmost 10px and rightmost 10px from being unclickable on the desktop version.'
@justju
Copy link
Contributor Author

justju commented Jul 6, 2018

Updated the PR to also make the previously unclickable 10px drag-target areas clickable on the desktop version.

@Findus23 Findus23 added the c: Usability For issues that let users achieve a defined goal more effectively or efficiently. label Jul 7, 2018
@tsteur
Copy link
Member

tsteur commented Jul 24, 2018

👍 Cheers for this. Quite a few UI tests are failing now see https://builds-artifacts.matomo.org/matomo-org/matomo/3.x-dev/28531/

Any chance you can update the failing screenshot tests? We can otherwise do this as well to make sure no random failures are being updated or so.

@tsteur tsteur added this to the 3.6.0 milestone Jul 24, 2018
@diosmosis diosmosis force-pushed the bugfix-mobile-sidebar-on-desktop-12531 branch from 2fb1992 to 4f5d9ba Compare July 25, 2018 01:56
@diosmosis
Copy link
Member

Took the liberty of updating the screenshots @justju in 3.x-dev, hope you don't mind, updating this many screenshots would have been quite the chore.

Thanks for the contribution, much appreciated!

@diosmosis diosmosis merged commit e765461 into matomo-org:3.x-dev Jul 25, 2018
diosmosis added a commit that referenced this pull request Jul 25, 2018
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
* Add hide-on-large-only class to the mobile-top-menu. This class is also used for the mobile-left-menu. This prevents the mobile-top-menu from briefly being shown in the desktop version, when clicking the invisible 10px area on the right side.

* Add 'hide-on-large-only'-like media query to Materialize's 'drag-target' class. This prevents the leftmost 10px and rightmost 10px from being unclickable on the desktop version.'
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mobile Sidebar appears on desktop site
4 participants