Skip to content

Commit

Permalink
#5031 Counter is too large on Query View/Source pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kravets-levko committed Jul 13, 2020
1 parent 328f0f3 commit fe57f55
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
39 changes: 30 additions & 9 deletions client/app/components/dashboards/dashboard-grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,36 @@
overflow: hidden;
}

.counter-visualization-content {
position: absolute;
left: 10px;
top: 15px;
right: 10px;
bottom: 15px;
height: auto;
overflow: hidden;
padding: 0;
.counter-visualization-container {
height: 100%;

.counter-visualization-content {
position: absolute;
left: 10px;
top: 15px;
right: 10px;
bottom: 15px;
height: auto;
overflow: hidden;
padding: 0;
}
}
}

.query-fixed-layout {
.visualization-renderer > .visualization-renderer-wrapper {
.counter-visualization-container {
// counter is too large on Query pages, so let's add some constraints
max-width: 600px;
max-height: 400px;
// center it
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
}
}
}

Expand Down
1 change: 1 addition & 0 deletions viz-lib/src/visualizations/counter/render.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
text-align: center;
padding: 15px 10px;
overflow: hidden;
position: relative;

.counter-visualization-content {
margin: 0;
Expand Down

0 comments on commit fe57f55

Please sign in to comment.