1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Hacky fix

This commit is contained in:
ferferga 2020-04-04 17:10:43 +02:00
parent f60eb57130
commit 4db414fb68
2 changed files with 7 additions and 3 deletions

View file

@ -529,6 +529,10 @@
align-items: center;
}
.parentName > a:nth-child(3) {
font-size: 0.7em;
}
.layout-mobile .parentName,
.layout-mobile .itemName,
.layout-mobile .itemMiscInfo,

View file

@ -336,7 +336,7 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "userSetti
return html = html.join(" / ");
}
// TODO: Clean this and the CSS rules for mobile layout. See #1022
function renderName(item, container, isStatic, context) {
var parentRoute;
var parentNameHtml = [];
@ -406,9 +406,9 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "userSetti
if (parentNameHtml.length) {
if (parentNameLast) {
html = '<h3 class="parentName" style="margin: .25em 0;">' + parentNameHtml.join(" - ") + "</h3>";
html = '<h3 class="parentName" style="margin: .25em 0;">' + parentNameHtml.join("</br>") + "</h3>";
} else {
html = '<h1 class="parentName" style="margin: .1em 0 .25em;">' + parentNameHtml.join(" - ") + "</h1>";
html = '<h1 class="parentName" style="margin: .1em 0 .25em;">' + parentNameHtml.join("</br>") + "</h1>";
}
}