mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-01 19:06:42 +02:00
Calculate minimum width of controller-friendly <select> elements
This commit is contained in:
@@ -300,6 +300,7 @@
|
||||
text-align: left;
|
||||
align-self: center;
|
||||
margin-bottom: 0 !important;
|
||||
flex: 1;
|
||||
|
||||
+ * {
|
||||
margin: 0 0 0 auto;
|
||||
|
@@ -4,12 +4,16 @@
|
||||
flex: 0 1 auto;
|
||||
|
||||
select {
|
||||
display: none !important;
|
||||
// Render offscreen instead of "display: none" so we could get its size
|
||||
position: absolute !important;
|
||||
top: -9999px !important;
|
||||
left: -9999px !important;
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
> div, button.bx-select-value {
|
||||
min-width: 110px;
|
||||
text-align: center;
|
||||
min-width: 120px;
|
||||
text-align: left;
|
||||
margin: 0 8px;
|
||||
line-height: 24px;
|
||||
vertical-align: middle;
|
||||
@@ -53,7 +57,7 @@
|
||||
|
||||
span {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user