Skip to content

Commit c768aaa

Browse files
committed
Prevent directory listing width from growing > 75%
Fixes CNVS-29059 Test plan: - Pull up /courses/<n>/files - Make a file or directory with a name that's around 230 characters - Ensure the list of files in the directory doesn't expand and cause - the directory tree on the left to be squished out of existence Change-Id: I96029fb60e14ad81678ab92090c3a5270d19871d Reviewed-on: https://gerrit.instructure.com/78811 Tested-by: Jenkins Reviewed-by: Steven Burnett <sburnett@instructure.com> QA-Review: Heath Hales <hhales@instructure.com> Product-Review: Alex Boyd <aboyd@instructure.com>
1 parent 9904d2d commit c768aaa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/stylesheets/pages/react_files/_react_files.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ body:not(.with-left-side) & .ic-app-nav-toggle-and-crumbs--files {
172172
position: relative;
173173
margin: 10px;
174174
flex: 3;
175+
// long file names cause this container, of all things, to expand unreasonably even after they get elided. Work
176+
// around that for the moment with this.
177+
max-width: 75%;
175178
display: flex;
176179
flex-direction: column;
177180

0 commit comments

Comments
 (0)