From 95ab3921d74c4862dd69d41ce95c5d19c29d5148 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 16 May 2024 09:31:20 +0100 Subject: [PATCH] Ensure that multiple spaces in file names are visible in the file tree (#18330) GitOrigin-RevId: 512e89d8afbfccf1c981d4f10df1e5729248f381 --- services/web/frontend/stylesheets/app/editor/file-tree.less | 1 + services/web/frontend/stylesheets/app/editor/history-react.less | 2 ++ 2 files changed, 3 insertions(+) diff --git a/services/web/frontend/stylesheets/app/editor/file-tree.less b/services/web/frontend/stylesheets/app/editor/file-tree.less index 43d3d6bab3..aff1910142 100644 --- a/services/web/frontend/stylesheets/app/editor/file-tree.less +++ b/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; } } diff --git a/services/web/frontend/stylesheets/app/editor/history-react.less b/services/web/frontend/stylesheets/app/editor/history-react.less index 4c828f7500..a20825525a 100644 --- a/services/web/frontend/stylesheets/app/editor/history-react.less +++ b/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;