Steps to reproduce
Enable navigation module and on mobile visit pages with views tables.
Like:
/admin/content
/admin/content/block

| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot_2023-10-10-08-17-31-446_com.android.chrome.jpg | 87.71 KB | finnsky |
Issue fork navigation-3392922
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
finnsky commentedFrom my point of view this kind of change should be at least scoped in:
1. Only mobile breakpoint
2. Only tables in content area.
Also probably we need to use
https://www.npmjs.com/package/tua-body-scroll-lock
It is part of core libraries. So can be useful here.
Comment #5
vensires@finnsky, I have just pushed what could be a solution.
Can you please review it in https://git.drupalcode.org/project/navigation/-/merge_requests/100.diff?
In general, when the user has zoomed out in ex.
/admin/contentand the navigation menu gets expanded, the tables in the body get limited to the viewport's width which actually causes something like a zoom-in, though not exactly.Comment #8
rfmarcelino commentedTested and working as intended
Comment #10
finnsky commentedRe: #5
I think it is not really secure change.
1. `table` may appear in lot of place inside body. Old school frontenders still use them in layouts :)
2. We need it only for mobile. (scope needed)
3. Maybe we can find some selector to identify that tables.
4. Scroll lock still an option.
Comment #11
vensiresRegarding point (3) we can't really find a more specific selector.
The default
/admin/contentprovides the following HTML:and we also have its sticky header:
We could target the "views-table" and "sticky-header" classes specifically, but this would beat the purpose of what we decided today that the module should provide robust code even if the frontend theme does crazy things and, of course, not all tables are views tables and not all tables are responsive tables.
I will fix the mobile scope issue in a future commit.
Comment #12
vensiresComment #13
finnsky commentedMR code still contains rebase artifact.
Comment #17
finnsky commentedPushed another approach with bodyscroll Lock library from core
Comment #18
finnsky commentedComment #19
finnsky commentedComment #20
finnsky commentedSomething wrong with Tugboat. Idk how to rebuild it.
Comment #21
finnsky commentedOverflow clip for HTML only not fixing initial issue.
But together with BODY overflow clip seems it works.
Please review!
Comment #22
vensiresTested and it's really working as expected! Thank you!
Comment #25
ckrina