mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 23:23:45 -06:00
table: fix for padding
The table-panel-wrapper class got removed when clicking on the panel menu which resulted in extra padding for the .panel-content div. This fixes that by setting the table-specific css class lower down in the html.
This commit is contained in:
parent
4f7791b9fa
commit
fc718b8a9a
@ -218,13 +218,13 @@ class TablePanelCtrl extends MetricsPanelCtrl {
|
||||
}
|
||||
|
||||
function renderPanel() {
|
||||
var panelElem = elem.parents('.panel');
|
||||
var panelElem = elem.parents('.panel-content');
|
||||
var rootElem = elem.find('.table-panel-scroll');
|
||||
var tbodyElem = elem.find('tbody');
|
||||
var footerElem = elem.find('.table-panel-footer');
|
||||
|
||||
elem.css({ 'font-size': panel.fontSize });
|
||||
panelElem.addClass('table-panel-wrapper');
|
||||
panelElem.addClass('table-panel-content');
|
||||
|
||||
appendTableRows(tbodyElem);
|
||||
appendPaginationControls(footerElem);
|
||||
|
@ -1,7 +1,6 @@
|
||||
.table-panel-wrapper {
|
||||
.panel-content {
|
||||
padding: 0;
|
||||
}
|
||||
.table-panel-content {
|
||||
padding: 0;
|
||||
|
||||
.panel-title-container {
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user