mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Adjust boxes padding
This commit is contained in:
5
panel.js
5
panel.js
@@ -709,17 +709,18 @@ var dtpPanel = Utils.defineClass({
|
||||
actor.vertical = isVertical;
|
||||
}
|
||||
|
||||
if (actor instanceof PanelMenu.Button) {
|
||||
if (actor instanceof PanelMenu.ButtonBox) {
|
||||
let child = actor.get_first_child();
|
||||
|
||||
if (child) {
|
||||
let currentStyle = child.get_style();
|
||||
let style = 'padding: ' + (isVertical ? '8px 0' : '0');
|
||||
let style = 'padding: ' + (isVertical ? '6px 0' : '0');
|
||||
|
||||
if (currentStyle && currentStyle != style) {
|
||||
style = currentStyle + (currentStyle.trim().slice(-1) != ';' ? ';' : '') + style;
|
||||
}
|
||||
|
||||
actor.set_width(isVertical ? size : -1);
|
||||
child.set_style(style);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,8 +72,8 @@
|
||||
}
|
||||
|
||||
.dashtopanelPanel.vertical .panel-button * {
|
||||
padding: 1px 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin: 1px 0;
|
||||
}
|
||||
|
||||
#dashtopanelThumbnailList {
|
||||
|
||||
Reference in New Issue
Block a user