Browse Source

Ensure that multiple spaces in file names are visible in the file tree (#18330)

GitOrigin-RevId: 512e89d8afbfccf1c981d4f10df1e5729248f381
Alf Eaton 2 năm trước cách đây
mục cha
commit
95ab3921d7

+ 1 - 0
services/web/frontend/stylesheets/app/editor/file-tree.less

@@ -112,6 +112,7 @@
           text-overflow: ellipsis;
           text-align: left;
           padding-right: 32px;
+          white-space: pre;
         }
       }
 

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

@@ -207,6 +207,7 @@ history-root {
   .history-version-change-doc {
     color: @neutral-90;
     overflow-wrap: anywhere;
+    white-space: pre-wrap;
   }
 
   .history-version-divider-container {
@@ -502,6 +503,7 @@ history-root {
             text-align: left;
             font-weight: normal;
             flex-grow: 1;
+            white-space: pre;
 
             &.strikethrough {
               text-decoration: line-through;