Commit fc718b8a by Daniel Lee

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.
parent 4f7791b9
......@@ -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);
......
.table-panel-wrapper {
.panel-content {
padding: 0;
}
.table-panel-content {
padding: 0;
.panel-title-container {
padding-bottom: 4px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment