瀏覽代碼

LibWeb: Fix bug where input range thumb is not centered

Bastiaan van der Plaat 1 年之前
父節點
當前提交
5ba8a5ba13
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Libraries/LibWeb/CSS/Default.css

+ 1 - 0
Userland/Libraries/LibWeb/CSS/Default.css

@@ -85,6 +85,7 @@ input[type=range]::-webkit-slider-thumb {
     margin-top: -6px;
     margin-top: -6px;
     width: 16px;
     width: 16px;
     height: 16px;
     height: 16px;
+    transform: translateX(-50%);
     border-radius: 50%;
     border-radius: 50%;
     background-color: hsl(0, 0%, 96%);
     background-color: hsl(0, 0%, 96%);
     outline: 1px solid rgba(0, 0, 0, 0.5);
     outline: 1px solid rgba(0, 0, 0, 0.5);