-
- {!state.searchBarHidden && }
-
-
- {children}
- chrome.setMegaMenu(false)} />
+ {!state.chromeless && (
+
+ {!state.searchBarHidden && }
+
+
+ )}
+ {children}
+ {!state.chromeless && (
+ chrome.setMegaMenu(false)} />
+ )}
);
}
@@ -58,6 +68,9 @@ const getStyles = (theme: GrafanaTheme2) => {
contentNoSearchBar: css({
paddingTop: TOP_BAR_LEVEL_HEIGHT,
}),
+ contentChromeless: css({
+ paddingTop: 0,
+ }),
topNav: css({
display: 'flex',
position: 'fixed',