mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
StatPanel: Fixed center of values in edge case scenarios (#28968)
This commit is contained in:
parent
7a4550df56
commit
91eac6e7af
@ -67,6 +67,10 @@ export abstract class BigValueLayout {
|
||||
zIndex: 1,
|
||||
};
|
||||
|
||||
if (this.justifyCenter) {
|
||||
styles.textAlign = 'center';
|
||||
}
|
||||
|
||||
switch (this.props.colorMode) {
|
||||
case BigValueColorMode.Value:
|
||||
styles.color = this.valueColor;
|
||||
|
@ -35,6 +35,7 @@ exports[`BigValue Render with basic options should render 1`] = `
|
||||
"fontWeight": 500,
|
||||
"lineHeight": 1.2,
|
||||
"position": "relative",
|
||||
"textAlign": "center",
|
||||
"zIndex": 1,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user