瀏覽代碼

:art: fix https://github.com/siyuan-note/siyuan/issues/7690

Vanessa 2 年之前
父節點
當前提交
681318cbb9
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 1
      app/src/assets/scss/protyle/_attr.scss
  2. 1 2
      app/src/assets/scss/protyle/_protyle.scss

+ 1 - 1
app/src/assets/scss/protyle/_attr.scss

@@ -1,7 +1,7 @@
 .protyle-attr {
 .protyle-attr {
   display: flex;
   display: flex;
   position: absolute;
   position: absolute;
-  right: 12px;
+  right: 0;
   top: -12px;
   top: -12px;
   opacity: 0;
   opacity: 0;
   font-size: 12px;
   font-size: 12px;

+ 1 - 2
app/src/assets/scss/protyle/_protyle.scss

@@ -9,7 +9,6 @@
   right: 0;
   right: 0;
   top: 30px;
   top: 30px;
   width: 16px;
   width: 16px;
-  padding: 0 8px;
   bottom: 9px; // 下图标 hover 时,需要留出一定的空间
   bottom: 9px; // 下图标 hover 时,需要留出一定的空间
 
 
   svg {
   svg {
@@ -48,7 +47,7 @@
 
 
   &__bar {
   &__bar {
     position: absolute;
     position: absolute;
-    right: calc(11px - var(--b3-dynamicscroll-width) / 2);
+    right: calc(4px - var(--b3-dynamicscroll-width) / 2);
     top: calc(50% - 8px);
     top: calc(50% - 8px);
     transform: rotate(90deg);
     transform: rotate(90deg);
     z-index: 1;
     z-index: 1;