Minor fixes

This commit is contained in:
redphx 2024-07-07 19:20:58 +07:00
parent c03c63f3c3
commit 900ab38153
4 changed files with 9 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -105,6 +105,10 @@ div[class^=HUDButton-module__hiddenContainer] ~ div:not([class^=HUDButton-module
font-family: var(--bx-promptfont-font); font-family: var(--bx-promptfont-font);
} }
select[multiple] {
overflow: auto;
}
/* Hide UI elements */ /* Hide UI elements */
#headerArea, #uhfSkipToMain, .uhf-footer { #headerArea, #uhfSkipToMain, .uhf-footer {
display: none; display: none;

View File

@ -569,7 +569,7 @@ export class Preferences {
[UiSection.ALL_GAMES]: t('section-all-games'), [UiSection.ALL_GAMES]: t('section-all-games'),
}, },
params: { params: {
size: 4, size: 3,
}, },
}, },

View File

@ -27,7 +27,7 @@ export enum SettingElementType {
export class SettingElement { export class SettingElement {
static #renderOptions(key: string, setting: PreferenceSetting, currentValue: any, onChange: any) { static #renderOptions(key: string, setting: PreferenceSetting, currentValue: any, onChange: any) {
const $control = CE<HTMLSelectElement>('select', { const $control = CE<HTMLSelectElement>('select', {
title: setting.label, // title: setting.label,
tabindex: 0, tabindex: 0,
}) as HTMLSelectElement; }) as HTMLSelectElement;
for (let value in setting.options) { for (let value in setting.options) {
@ -54,7 +54,7 @@ export class SettingElement {
static #renderMultipleOptions(key: string, setting: PreferenceSetting, currentValue: any, onChange: any, params: MultipleOptionsParams={}) { static #renderMultipleOptions(key: string, setting: PreferenceSetting, currentValue: any, onChange: any, params: MultipleOptionsParams={}) {
const $control = CE<HTMLSelectElement>('select', { const $control = CE<HTMLSelectElement>('select', {
title: setting.label, // title: setting.label,
multiple: true, multiple: true,
tabindex: 0, tabindex: 0,
}); });