mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Reduce width of controller-friendly select box if it has <optgroup>
This commit is contained in:
parent
392dc2cf86
commit
38211168e9
@ -203,6 +203,11 @@ export class NavigationDialogManager {
|
||||
$label = $parent.querySelector<HTMLElement>('div')!;
|
||||
}
|
||||
|
||||
// Reduce width if it has <optgroup>
|
||||
if ($select.querySelector('optgroup')) {
|
||||
width -= 15;
|
||||
}
|
||||
|
||||
// Set min-width
|
||||
$label.style.minWidth = width + 'px';
|
||||
$parent.dataset.calculated = 'true';
|
||||
|
Loading…
x
Reference in New Issue
Block a user