Skip to content
Snippets Groups Projects
Unverified Commit 9fbe6e8d authored by Jesse Devaney's avatar Jesse Devaney Committed by GitHub
Browse files

Fix text cutoff for error view and no results view on dash-cards (#39656)

* fix dashcard text gets cut off

* fix magic number
parent 60ca0cfd
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,8 @@ const mapStateToProps = state => ({
isRawTable: getIsShowingRawTable(state),
});
const SMALL_CARD_WIDTH_THRESHOLD = 150;
class Visualization extends PureComponent {
state = {
hovered: null,
......@@ -345,7 +347,7 @@ class Visualization extends PureComponent {
onUpdateVisualizationSettings,
} = this.props;
const { visualization } = this.state;
const small = width < 330;
const small = width < SMALL_CARD_WIDTH_THRESHOLD;
// these may be overridden below
let { series, hovered, clicked } = this.state;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment