Skip to content

Commit 006e711

Browse files
fix titlebar text overflow
1 parent b747858 commit 006e711

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

src/player/modules/Titlebar/style.css

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
order: 0;
33
flex: 0 1 40px;
44
align-self: auto;
5+
display: flex;
6+
align-items: center;
57
position: relative;
68
background: var(--primary-bg-color);
79
width: 100%;
@@ -42,7 +44,7 @@
4244
}
4345

4446
.titlebarViewMode {
45-
float: left;
47+
flex-shrink: 0;
4648
}
4749

4850
.titlebarViewMode.hidden {
@@ -111,16 +113,20 @@
111113
}
112114

113115
.titlebar .titlebarTitle {
114-
position: absolute;
115-
top: 0px;
116-
left: 0px;
117-
width: 100%;
118-
height: 100%;
116+
flex: 1;
117+
min-width: 0;
119118
display: flex;
120119
align-items: center;
121120
justify-content: center;
121+
height: 100%;
122+
padding-left: 10px;
122123
color: var(--primary-fg-color);
123-
z-index: -1;
124+
}
125+
126+
.titlebar .titlebarTitle > span {
127+
overflow: hidden;
128+
white-space: nowrap;
129+
text-overflow: ellipsis;
124130
}
125131

126132
.titlebar.editActive .titlebarTitle {
@@ -133,6 +139,7 @@
133139

134140
.titlebar .titlebarTitle .hypervideoEditButton,
135141
.titlebar .titlebarTitle .hypervideoDeleteButton {
142+
flex-shrink: 0;
136143
opacity: 0.7;
137144
display: none;
138145
}
@@ -165,7 +172,7 @@
165172
}
166173

167174
.titlebar .titlebarActionButtonContainer {
168-
float: right;
175+
flex-shrink: 0;
169176
}
170177

171178
.frametrail-body.inFullscreen .titlebar .logoutButton {

0 commit comments

Comments
 (0)