Fix Guide CSS in TV layout

This commit is contained in:
redphx 2024-12-11 06:12:15 +07:00
parent d8a085d43f
commit 46469e3949
4 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7,11 +7,11 @@
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
html[data-xds-platform=tv] & { body[data-media-type=tv] & {
flex-direction: column; flex-direction: column;
} }
html:not([data-xds-platform=tv]) & { body:not([data-media-type=tv]) & {
flex-direction: row; flex-direction: row;
> button:first-of-type { > button:first-of-type {
@ -34,7 +34,7 @@
flex-direction: row; flex-direction: row;
gap: 12px; gap: 12px;
html[data-xds-platform=tv] & { body[data-media-type=tv] & {
flex-direction: column; flex-direction: column;
button { button {
@ -42,7 +42,7 @@
} }
} }
html:not([data-xds-platform=tv]) & { body:not([data-media-type=tv]) & {
button { button {
span { span {
display: none; display: none;

View File

@ -97,7 +97,7 @@ export class TrueAchievements {
} }
this.updateIds(xboxTitleId); this.updateIds(xboxTitleId);
if (document.documentElement.dataset.xdsPlatform === 'tv') { if (document.body.dataset.mediaType === 'tv') {
$div.appendChild(this.$link); $div.appendChild(this.$link);
} else { } else {
$div.appendChild(this.$button); $div.appendChild(this.$button);