Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1798827: Monitoring Dashboards: Limit bar chart height #4219

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions frontend/public/components/monitoring/_monitoring.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
padding: 10px;
}

&.co-dashboard-card--gradient {
.pf-c-card__body {
max-height: 350px;
overflow: scroll;
}
&:after {
width: calc(100% - 10px);
}
}

.query-browser__wrapper {
border: 0;
margin: 0;
Expand Down
5 changes: 4 additions & 1 deletion frontend/public/components/monitoring/dashboards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ const Card: React.FC<CardProps> = ({ panel, pollInterval, timespan }) => {

return (
<div className={`col-xs-12 col-sm-${colSpanSm} col-lg-${colSpan}`}>
<DashboardCard className="monitoring-dashboards__panel">
<DashboardCard
className="monitoring-dashboards__panel"
gradient={panel.type === 'grafana-piechart-panel'}
>
<DashboardCardHeader className="monitoring-dashboards__card-header">
<DashboardCardTitle>{panel.title}</DashboardCardTitle>
</DashboardCardHeader>
Expand Down