mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Making side bars a bit more usable for narrow screen
Summary: - closes side bars when tapping content area - opens left panel when tapping the page name Test Plan: Includes browser tests. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2705
This commit is contained in:
@@ -117,6 +117,10 @@ export function pagePanels(page: PageContents) {
|
||||
),
|
||||
cssContentOverlay(
|
||||
dom.show((use) => use(left.panelOpen) || Boolean(right && use(right.panelOpen))),
|
||||
dom.on('click', () => {
|
||||
left.panelOpen.set(false);
|
||||
if (right) { right.panelOpen.set(false); }
|
||||
}),
|
||||
testId('overlay'))
|
||||
), (
|
||||
!optimizeNarrowScreen ? null :
|
||||
|
||||
Reference in New Issue
Block a user