mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Fix Guide CSS in TV layout
This commit is contained in:
parent
d8a085d43f
commit
46469e3949
2
dist/better-xcloud.lite.user.js
vendored
2
dist/better-xcloud.lite.user.js
vendored
File diff suppressed because one or more lines are too long
4
dist/better-xcloud.user.js
vendored
4
dist/better-xcloud.user.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user