Procházet zdrojové kódy

Merge pull request #9992 from overleaf/jel-react-dash-sidebar-buttons

[web] React dash - wrap text in sidebar buttons

GitOrigin-RevId: 68c037c93049468fd48104a151188fc20a643910
Jessica Lawshe před 4 roky
rodič
revize
9d31ea62b3

+ 6 - 1
services/web/frontend/stylesheets/app/project-list-react.less

@@ -54,6 +54,12 @@
           color: @sidebar-color;
         }
 
+        button {
+          white-space: normal;
+          word-wrap: anywhere;
+          // prevents buttons from expanding sidebar width
+        }
+
         > .dropdown {
           width: 100%;
 
@@ -179,7 +185,6 @@
         position: relative;
         padding: @folders-tag-padding;
         display: @folders-tag-display;
-        white-space: normal;
         word-wrap: anywhere;
 
         span.name {