fix: expand from right for middle positions

This commit is contained in:
joshpatra committed 2026-03-28 17:31:18 -04:00
1 parent 194acacab4
commit 4d34c8754d
1 file changed
+11
+11
View File
@@ -39,6 +39,17 @@
margin-right: 0.8em;
}
/* For center positions, override transform to expand from left edge instead of center */
#controller[data-location="top-center"],
#controller[data-location="bottom-center"] {
transform: translate(0, 0) !important;
left: calc(50% - 30px) !important;
}
#controller[data-location="bottom-center"] {
transform: translate(0, -100%) !important;
}
#controls {
display: none;
}