(core) Hide filter bar for inactive widget in mobile mode

Summary:
The filter bar used to show in mobile mode while the widget was inactive as illustrated in this screen shot
{F31970}

This diff fixes it.
{F31971}

Test Plan: Manually tested.

Reviewers: dsagal

Reviewed By: dsagal

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D2958
This commit is contained in:
Cyprien P 2021-08-03 18:01:12 +02:00
parent 26356fe588
commit e4633c293c
2 changed files with 3 additions and 2 deletions

View File

@ -350,7 +350,8 @@ const cssViewLeafInactive = styled('div', `
} }
& > .view_data_pane_container, & > .view_data_pane_container,
& .viewsection_buttons, & .viewsection_buttons,
& .grist-single-record__menu { & .grist-single-record__menu,
& > .filter_bar {
display: none; display: none;
} }
} }

View File

@ -81,7 +81,7 @@ function makePlusButton(viewSectionRec: ViewSectionRec, popupControls: WeakMap<V
}); });
} }
const cssFilterBar = styled('div', ` const cssFilterBar = styled('div.filter_bar', `
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin-bottom: 8px; margin-bottom: 8px;