Skip to content

Commit

Permalink
fix(dashboard): Filters panel height (#15661)
Browse files Browse the repository at this point in the history
* Fix container height

* Add min height vh

* Remove offset when standalone

* Clean up
  • Loading branch information
geido committed Jul 14, 2021
1 parent b3e699b commit a1793f3
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -177,10 +177,9 @@ const DashboardBuilder: FC<DashboardBuilderProps> = () => {
rootChildId !== DASHBOARD_GRID_ID
? dashboardLayout[rootChildId]
: undefined;

const isStandalone = getUrlParam(URL_PARAMS.standalone);
const hideDashboardHeader =
getUrlParam(URL_PARAMS.standalone) ===
DashboardStandaloneMode.HIDE_NAV_AND_TITLE;
isStandalone === DashboardStandaloneMode.HIDE_NAV_AND_TITLE;

const barTopOffset =
(hideDashboardHeader ? 0 : HEADER_HEIGHT) +
Expand All @@ -207,7 +206,7 @@ const DashboardBuilder: FC<DashboardBuilderProps> = () => {

const offset =
FILTER_BAR_HEADER_HEIGHT +
(isSticky ? 0 : MAIN_HEADER_HEIGHT) +
(isSticky || isStandalone ? 0 : MAIN_HEADER_HEIGHT) +
(filterSetEnabled ? FILTER_BAR_TABS_HEIGHT : 0);

const filterBarHeight = `calc(100vh - ${offset}px)`;
Expand Down

0 comments on commit a1793f3

Please sign in to comment.