Просмотр исходного кода

Merge pull request #15721 from overleaf/ii-file-tree-nested-files-and-folders

[web] Fix deeply nested files and folders selection

GitOrigin-RevId: 3c9cc62f3294a735627d27019e53917b6fa8e6f2
Tim Down 2 лет назад
Родитель
Сommit
ea9a639734

+ 3 - 2
services/web/frontend/stylesheets/app/editor/file-tree.less

@@ -2,8 +2,8 @@
   &::before {
     content: '\00a0';
     position: absolute;
-    width: 100%;
-    right: 100%;
+    width: 9999px;
+    left: -9999px;
     background-color: @bg-color;
   }
 }
@@ -129,6 +129,7 @@
           outline: none;
         }
         background-color: transparent;
+        .fake-full-width-bg(transparent);
         &:hover {
           background-color: @file-tree-item-hover-bg;
 

+ 1 - 0
services/web/frontend/stylesheets/app/editor/history-react.less

@@ -468,6 +468,7 @@ history-root {
           outline: none;
         }
 
+        .fake-full-width-bg(transparent);
         &:hover {
           background-color: @file-tree-item-hover-bg;