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:
Dmitry Filimonov 2023-11-22 08:52:41 -08:00 committed by GitHub
parent 4c4f11f4b3
commit d47ac2f67e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
}),