Skip to content

Commit 7b5c42d

Browse files
authored
Merge pull request #2448 from gnestor/issue-1129
Fix save widget layout for long notebook titles
2 parents cdeeda6 + 74ea5eb commit 7b5c42d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

notebook/static/notebook/less/savewidget.less

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
span.save_widget {
22
margin-top: 6px;
3+
max-width: 100%;
4+
display: flex;
35

46
span.filename {
57
height: 1em;
@@ -8,6 +10,9 @@ span.save_widget {
810
margin-left: @padding-large-horizontal;
911
border: none;
1012
font-size: 146.5%;
13+
text-overflow: ellipsis;
14+
overflow: hidden;
15+
white-space: nowrap;
1116
&:hover{
1217
// ensure body is lighter on dark palette,
1318
// and vice versa
@@ -19,14 +24,17 @@ span.save_widget {
1924

2025
span.checkpoint_status, span.autosave_status {
2126
font-size: small;
27+
white-space: nowrap;
28+
padding: 0 5px;
2229
}
2330

2431
@media (max-width: @screen-xs-max) {
2532
span.save_widget {
2633
font-size: small;
34+
padding: 0 0 0 5px;
2735
}
2836
span.checkpoint_status, span.autosave_status {
29-
display: none;
37+
display: none;
3038
}
3139
}
3240

@@ -38,6 +46,3 @@ span.checkpoint_status, span.autosave_status {
3846
font-size: x-small;
3947
}
4048
}
41-
42-
43-

0 commit comments

Comments
 (0)