Jelajahi Sumber

modify hitarea size

Yuki Takei 4 tahun lalu
induk
melakukan
63e8073720
1 mengubah file dengan 7 tambahan dan 3 penghapusan
  1. 7 3
      packages/app/src/styles/_sidebar.scss

+ 7 - 3
packages/app/src/styles/_sidebar.scss

@@ -43,9 +43,13 @@
     }
     .hitarea {
       @extend .rounded-pill;
-      width: $size;
-      height: $size;
-      background-color: red;
+
+      $size-hitarea: $size * 2.5;
+      position: absolute;
+      top: ($size - $size-hitarea) / 2;
+      left: ($size - $size-hitarea) / 2;
+      width: $size-hitarea;
+      height: $size-hitarea;
     }
 
     // reverse and center icon at the time of collapsed