mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
Scenes: Set min-height of left panel editor panes to 0 (#80641)
This commit is contained in:
parent
a2e9a40caf
commit
950d57c0f5
@ -143,8 +143,8 @@ function PanelDataPaneRendered({ model }: SceneComponentProps<PanelDataPane>) {
|
||||
const currentTab = tabs.find((t) => t.tabId === tab);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<TabsBar hideBorder={true}>
|
||||
<>
|
||||
<TabsBar hideBorder={true} className={styles.tabsBar}>
|
||||
{tabs.map((t, index) => {
|
||||
return (
|
||||
<Tab
|
||||
@ -158,12 +158,12 @@ function PanelDataPaneRendered({ model }: SceneComponentProps<PanelDataPane>) {
|
||||
);
|
||||
})}
|
||||
</TabsBar>
|
||||
<TabContent className={styles.tabContent}>
|
||||
<CustomScrollbar autoHeightMin="100%">
|
||||
<CustomScrollbar className={styles.scroll}>
|
||||
<TabContent className={styles.tabContent}>
|
||||
<Container>{currentTab && <currentTab.Component model={currentTab} />}</Container>
|
||||
</CustomScrollbar>
|
||||
</TabContent>
|
||||
</div>
|
||||
</TabContent>
|
||||
</CustomScrollbar>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@ -175,6 +175,13 @@ function getStyles(theme: GrafanaTheme2) {
|
||||
borderLeft: 'none',
|
||||
borderBottom: 'none',
|
||||
borderTopRightRadius: theme.shape.radius.default,
|
||||
flexGrow: 1,
|
||||
}),
|
||||
tabsBar: css({
|
||||
flexShrink: 0,
|
||||
}),
|
||||
scroll: css({
|
||||
background: theme.colors.background.primary,
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
@ -126,6 +126,13 @@ export function buildPanelEditScene(panel: VizPanel): PanelEditor {
|
||||
secondary: new SceneFlexItem({
|
||||
body: new PanelDataPane(vizPanelMgr),
|
||||
}),
|
||||
primaryPaneStyles: {
|
||||
minHeight: 0,
|
||||
overflow: 'hidden',
|
||||
},
|
||||
secondaryPaneStyles: {
|
||||
minHeight: 0,
|
||||
},
|
||||
}),
|
||||
secondary: new SceneFlexItem({
|
||||
body: new PanelOptionsPane(vizPanelMgr),
|
||||
|
Loading…
Reference in New Issue
Block a user