mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-09 19:30:15 +00:00
window_title_in_menubar: Make title clip with ellipsis instead of wrapping
This commit is contained in:
parent
f5c703c547
commit
024f9dcee7
1 changed files with 5 additions and 4 deletions
|
@ -7,18 +7,19 @@ See the above repository for updates as well as full license text. */
|
||||||
:root:not([sizemode="fullscreen"]) > head{
|
:root:not([sizemode="fullscreen"]) > head{
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
top: 2px;
|
||||||
right: 140px; /* Space for window controls */
|
right: 140px; /* Space for window controls */
|
||||||
width: calc(100vw - 440px); /* Window width - window control width - menuitem (English) width */
|
width: calc(100vw - 440px); /* Window width - window control width - menuitem (English) width */
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
head > *{ display: none }
|
head > *{ display: none }
|
||||||
head > title{
|
head > title{
|
||||||
display: -moz-inline-box;
|
display: contents;
|
||||||
padding-top: 1px;
|
|
||||||
max-width: 50vw;
|
max-width: 50vw;
|
||||||
overflow-x: hidden;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue