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

Some library rtl fixes

This commit is contained in:
Hadi Charara 2022-07-04 11:56:38 -04:00
parent 5301a98ea1
commit 7b1afeef82
4 changed files with 60 additions and 10 deletions

View file

@ -32,6 +32,39 @@
} }
} }
@mixin header-poster-padding-rtl() {
padding-left: unset;
padding-right: 37.5%;
@media all and (min-width: 43.75em) {
padding-right: 25%;
}
@media all and (min-width: 50em) {
padding-right: 20%;
}
@media all and (min-width: 75em) {
padding-right: 16.666666666666666666666666666667%;
}
@media all and (min-width: 87.5em) {
padding-right: 14.285714285714285714285714285714%;
}
@media all and (min-width: 100em) {
padding-right: 12.5%;
}
@media all and (min-width: 120em) {
padding-right: 11.111111111111111111111111111111%;
}
@media all and (min-width: 131.25em) {
padding-right: 10%;
}
}
.headerUserImage, .headerUserImage,
.navMenuOption, .navMenuOption,
.pageTitle { .pageTitle {
@ -622,9 +655,9 @@
.layout-mobile .itemName, .layout-mobile .itemName,
.layout-mobile .itemMiscInfo, .layout-mobile .itemMiscInfo,
.layout-mobile .mainDetailButtons { .layout-mobile .mainDetailButtons {
align-items: center; align-items: center !important;
justify-content: center; justify-content: center !important;
text-align: center; text-align: center !important;
} }
.layout-mobile .mainDetailButtons { .layout-mobile .mainDetailButtons {
@ -641,6 +674,8 @@
} }
[dir="rtl"] & { [dir="rtl"] & {
@include header-poster-padding-rtl;
@media all and (max-width: 32em) { @media all and (max-width: 32em) {
padding-left: unset; padding-left: unset;
padding-right: 0; padding-right: 0;
@ -714,6 +749,12 @@
position: relative; position: relative;
} }
} }
[dir="rtl"] & {
.layout-mobile & {
@include header-poster-padding-rtl;
}
}
} }
.infoText { .infoText {

View file

@ -107,7 +107,7 @@
} }
.alphaPicker-fixed-right { .alphaPicker-fixed-right {
right: 0.4em; inset-inline-end: 0.4em;
} }
@media all and (min-width: 62.5em) { @media all and (min-width: 62.5em) {
@ -116,6 +116,15 @@
} }
} }
[dir="rtl"] {
@media all and (min-width: 62.5em) {
.alphaPicker-fixed-right {
right: unset;
left: 1em;
}
}
}
@media all and (max-height: 31.25em) { @media all and (max-height: 31.25em) {
.alphaPicker-fixed { .alphaPicker-fixed {
display: none !important; display: none !important;

View file

@ -149,7 +149,7 @@ import ServerConnections from '../ServerConnections';
elem.classList.add('listItemBodyText'); elem.classList.add('listItemBodyText');
elem.innerText = text; elem.innerHTML = '<bdi>' + text + '</bdi>';
html += elem.outerHTML; html += elem.outerHTML;
} }
@ -422,7 +422,7 @@ import ServerConnections from '../ServerConnections';
if (enableOverview && item.Overview) { if (enableOverview && item.Overview) {
html += '<div class="secondary listItem-overview listItemBodyText">'; html += '<div class="secondary listItem-overview listItemBodyText">';
html += item.Overview; html += '<bdi>' + item.Overview + '</bdi>';
html += '</div>'; html += '</div>';
} }

View file

@ -473,7 +473,7 @@ function renderName(item, container, context) {
html = '<h3 class="parentName musicParentName focuscontainer-x">' + parentNameHtml.join(' - ') + '</h3>'; html = '<h3 class="parentName musicParentName focuscontainer-x">' + parentNameHtml.join(' - ') + '</h3>';
} }
} else { } else {
html = '<h1 class="parentName focuscontainer-x">' + tvShowHtml + '</h1>'; html = '<h1 class="parentName focuscontainer-x"><bdi>' + tvShowHtml + '</bdi></h1>';
} }
} }
@ -483,21 +483,21 @@ function renderName(item, container, context) {
if (html && !parentNameLast) { if (html && !parentNameLast) {
if (tvSeasonHtml) { if (tvSeasonHtml) {
html += '<h3 class="itemName infoText subtitle focuscontainer-x">' + tvSeasonHtml + ' - ' + name + '</h3>'; html += '<h3 class="itemName infoText subtitle focuscontainer-x"><bdi>' + tvSeasonHtml + ' - </bdi><bdi>' + name + '</bdi></h3>';
} else { } else {
html += '<h3 class="itemName infoText subtitle">' + name + '</h3>'; html += '<h3 class="itemName infoText subtitle">' + name + '</h3>';
} }
} else if (item.OriginalTitle && item.OriginalTitle != item.Name) { } else if (item.OriginalTitle && item.OriginalTitle != item.Name) {
html = '<h1 class="itemName infoText parentNameLast withOriginalTitle">' + name + '</h1>' + html; html = '<h1 class="itemName infoText parentNameLast withOriginalTitle">' + name + '</h1>' + html;
} else { } else {
html = '<h1 class="itemName infoText parentNameLast">' + name + '</h1>' + html; html = '<h1 class="itemName infoText parentNameLast"><bdi>' + name + '</bdi></h1>' + html;
} }
if (item.OriginalTitle && item.OriginalTitle != item.Name) { if (item.OriginalTitle && item.OriginalTitle != item.Name) {
html += '<h4 class="itemName infoText originalTitle">' + escapeHtml(item.OriginalTitle) + '</h4>'; html += '<h4 class="itemName infoText originalTitle">' + escapeHtml(item.OriginalTitle) + '</h4>';
} }
container.innerHTML = '<bdi>' + html + '</bdi>'; container.innerHTML = html;
if (html.length) { if (html.length) {
container.classList.remove('hide'); container.classList.remove('hide');