Skip to content

Commit aaa3368

Browse files
authored
Merge pull request #411 from tyeth/css-header-overflow
fix(header): css for overflowing truncated title needs nowrap + title(tooltip) js sync
2 parents 416bc33 + b173f0a commit aaa3368

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

js/workflows/workflow.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ class Workflow {
183183
}
184184

185185
this.terminalTitle.textContent = title;
186+
this.terminalTitle.title = title;
186187
}
187188

188189
async showConnect(documentState) {

sass/layout/_header.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
flex: auto;
139139
overflow: hidden;
140140
text-overflow: ellipsis;
141+
white-space: nowrap;
142+
flex-shrink: 1;
143+
max-width: fit-content;
141144
}
142145

143146
@media (max-width: $screen-xs-max) {

sass/layout/_layout.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,16 @@
6060

6161
#editor-bar, #serial-bar {
6262
display: flex;
63-
flex-wrap: wrap;
6463
align-items: center;
6564
padding: 0 10px;
6665
min-height: 60px;
6766
height: 4em;
6867
}
6968

69+
#editor-bar {
70+
flex-wrap: wrap;
71+
}
72+
7073
#editor-page {
7174
#editor {
7275
flex: 1 1 0%;

0 commit comments

Comments
 (0)