diff --git a/polygerrit-ui/app/elements/change/gr-file-list/gr-file-list.html b/polygerrit-ui/app/elements/change/gr-file-list/gr-file-list.html index 6425acb7a6..61bc20ba43 100644 --- a/polygerrit-ui/app/elements/change/gr-file-list/gr-file-list.html +++ b/polygerrit-ui/app/elements/change/gr-file-list/gr-file-list.html @@ -145,6 +145,12 @@ limitations under the License. .patchSetSelect { max-width: 8em; } + .truncatedFileName { + display: none; + } + .expanded .fullFileName { + white-space: normal; + } @media screen and (max-width: 50em) { .row.selected { background-color: transparent; @@ -159,6 +165,14 @@ limitations under the License. .comments { min-width: initial; } + .expanded .fullFileName, + .truncatedFileName { + display: block; + } + .expanded .truncatedFileName, + .fullFileName { + display: none; + } }
@@ -217,11 +231,16 @@ limitations under the License.
[[_computeFileStatus(file.status)]]
- -
+
[[_computeFileDisplayName(file.__path)]]
+
+ [[_computeTruncatedFileDisplayName(file.__path)]] +