mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-02 19:36:46 +02:00
Adjust video position (#583)
This commit is contained in:
@@ -47,7 +47,39 @@ body[data-media-type=tv] .bx-stream-home-button {
|
||||
}
|
||||
|
||||
div[data-testid=media-container] {
|
||||
display: flex;
|
||||
&[data-position=center] {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
&[data-position=top] {
|
||||
video, canvas {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-position=bottom] {
|
||||
video, canvas {
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#game-stream {
|
||||
video {
|
||||
margin: auto;
|
||||
align-self: center;
|
||||
background: #000;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
canvas {
|
||||
position: absolute;
|
||||
align-self: center;
|
||||
margin: auto;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
&.bx-taking-screenshot:before {
|
||||
animation: bx-anim-taking-screenshot 0.5s ease;
|
||||
@@ -59,21 +91,6 @@ div[data-testid=media-container] {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#game-stream video {
|
||||
margin: auto;
|
||||
align-self: center;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
#game-stream canvas {
|
||||
position: absolute;
|
||||
align-self: center;
|
||||
margin: auto;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
#gamepass-dialog-root div[class^=Guide-module__guide] {
|
||||
.bx-button {
|
||||
overflow: visible;
|
||||
|
Reference in New Issue
Block a user