Update buttons layout in Guide Menu with TV layout (#492)

This commit is contained in:
redphx
2024-09-05 06:34:30 +07:00
parent 821904066b
commit a45d0f8b98
3 changed files with 20 additions and 0 deletions

View File

@@ -3,6 +3,22 @@
display: flex;
flex-direction: row;
gap: 12px;
body[data-media-type=tv] & {
flex-direction: column;
button {
margin-bottom: 0 !important;
}
}
body:not([data-media-type=tv]) & {
button {
span {
display: none;
}
}
}
}
&[data-is-playing="true"] {

View File

@@ -28,6 +28,7 @@ export class GuideMenu {
closeApp: AppInterface && createButton({
icon: BxIcon.POWER,
label: t('close-app'),
title: t('close-app'),
style: ButtonStyle.FULL_WIDTH | ButtonStyle.FOCUSABLE | ButtonStyle.DANGER,
onClick: e => {
@@ -41,6 +42,7 @@ export class GuideMenu {
reloadPage: createButton({
icon: BxIcon.REFRESH,
label: t('reload-page'),
title: t('reload-page'),
style: ButtonStyle.FULL_WIDTH | ButtonStyle.FOCUSABLE,
onClick: e => {
@@ -57,6 +59,7 @@ export class GuideMenu {
backToHome: createButton({
icon: BxIcon.HOME,
label: t('back-to-home'),
title: t('back-to-home'),
style: ButtonStyle.FULL_WIDTH | ButtonStyle.FOCUSABLE,
onClick: e => {

View File

@@ -13,6 +13,7 @@ export class TrueAchievements {
}) as HTMLAnchorElement;
static $button = createButton({
label: t('true-achievements'),
title: t('true-achievements'),
icon: BxIcon.TRUE_ACHIEVEMENTS,
style: ButtonStyle.FOCUSABLE | ButtonStyle.FULL_WIDTH,