pull/5579/merge
Berre Neyrinck 2026-03-24 10:15:10 -04:00 committed by GitHub
commit aea5bab0e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 4 deletions

View File

@ -937,7 +937,15 @@ var RED = (function() {
$('<img>',{src:theme.header.image}).appendTo(logo);
}
if (theme.header.title) {
$('<span>').html(theme.header.title).appendTo(logo);
const titleSpan = $('<span>').html(theme.header.title).appendTo(logo);
const length = theme.header.title.length;
if(length > 25){
titleSpan.css('font-size', '11px');
} else if (len > 15) {
titleSpan.css('font-size', '12px');
} else {
titleSpan.css('font-size', '14px')
}
}
}
if (theme.themes) {

View File

@ -44,13 +44,19 @@
}
span.red-ui-header-logo {
text-decoration: none;
white-space: nowrap;
display: inline-flex;
align-items: center;
white-space: normal;
span {
vertical-align: middle;
font-size: 14px !important;
font-size: 14px;
&:not(:first-child) {
margin-left: 8px;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow:hidden;
}
}
img {