mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Fix bug with Game Bar when showing it on the right side
This commit is contained in:
parent
8a1dff3372
commit
4068930db7
@ -33,7 +33,7 @@
|
||||
transition: opacity 0.1s ease-in;
|
||||
|
||||
&.bx-show {
|
||||
opacity: 1;
|
||||
opacity: 0.9;
|
||||
|
||||
+ svg {
|
||||
display: none !important;
|
||||
@ -111,6 +111,7 @@
|
||||
direction: rtl;
|
||||
|
||||
.bx-game-bar-container {
|
||||
direction: ltr;
|
||||
border-radius: 10px 0 0 10px;
|
||||
}
|
||||
}
|
||||
|
@ -45,6 +45,11 @@ export class GameBar {
|
||||
new MicrophoneAction(),
|
||||
];
|
||||
|
||||
// Reverse the action list if Game Bar's position is on the right side
|
||||
if (position === 'bottom-right') {
|
||||
this.actions.reverse();
|
||||
}
|
||||
|
||||
// Render actions
|
||||
for (const action of this.actions) {
|
||||
$container.appendChild(action.render());
|
||||
|
Loading…
x
Reference in New Issue
Block a user