mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FlameGraph: reduce max height of table (#78432)
* FlameGraph: reduce max height of table * prettier fix * use maxHeight * makes it actually work * makes things actually work --------- Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
parent
4c4f11f4b3
commit
d47ac2f67e
@ -175,7 +175,7 @@ const FlameGraphContainer = ({
|
||||
<FlameGraphTopTableContainer
|
||||
data={dataContainer}
|
||||
onSymbolClick={onSymbolClick}
|
||||
height={selectedView === SelectedView.TopTable ? 600 : undefined}
|
||||
height={selectedView === SelectedView.TopTable || vertical ? 600 : undefined}
|
||||
search={search}
|
||||
sandwichItem={sandwichItem}
|
||||
onSandwich={setSandwichItem}
|
||||
@ -230,7 +230,7 @@ function getStyles(theme: GrafanaTheme2, vertical?: boolean) {
|
||||
container: css({
|
||||
label: 'container',
|
||||
height: '100%',
|
||||
display: 'flex',
|
||||
display: vertical ? 'block' : 'flex',
|
||||
flex: '1 1 0',
|
||||
flexDirection: 'column',
|
||||
minHeight: 0,
|
||||
@ -241,6 +241,7 @@ function getStyles(theme: GrafanaTheme2, vertical?: boolean) {
|
||||
display: 'flex',
|
||||
flexGrow: 1,
|
||||
minHeight: 0,
|
||||
height: vertical ? undefined : '100vh',
|
||||
flexDirection: vertical ? 'column-reverse' : 'row',
|
||||
columnGap: theme.spacing(1),
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user