window_title_in_menubar: Make title clip with ellipsis instead of wrapping

This commit is contained in:
MrOtherGuy 2022-12-17 09:41:53 +02:00
parent f5c703c547
commit 024f9dcee7

View file

@ -7,18 +7,19 @@ See the above repository for updates as well as full license text. */
:root:not([sizemode="fullscreen"]) > head{
display: block;
position: fixed;
top: 2px;
right: 140px; /* Space for window controls */
width: calc(100vw - 440px); /* Window width - window control width - menuitem (English) width */
text-align: center;
z-index: 1;
pointer-events: none;
text-overflow: ellipsis;
overflow-x: hidden;
}
head > *{ display: none }
head > title{
display: -moz-inline-box;
padding-top: 1px;
display: contents;
max-width: 50vw;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}