浏览代码

fix(gui): clock padding moving other elements

KernelDeimos 2 月之前
父节点
当前提交
8edcf7575d
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/gui/src/css/style.css

+ 8 - 1
src/gui/src/css/style.css

@@ -2401,7 +2401,14 @@ label {
     color: white;
     font-size: 13px;
     background-color: #00000056;
-    padding: 5px;
+    
+    /* prevent clock from moving other taskbar items */
+    height: 22px;
+    line-height: 22px;
+
+    /* line-height above handles vertical padding */
+    padding: 0 5px;
+
     border-radius: 5px;
     opacity: 0.8;
 }