From ab519fe007632001cf49b4d9d83442df762a124c Mon Sep 17 00:00:00 2001 From: N3xoX1 <36610570+N3xoX1@users.noreply.github.com> Date: Tue, 22 Sep 2026 20:28:21 +0930 Subject: [PATCH] lang: update the config lang to remove the usage of %% (#286) --- lang/english/css/config.css | 10 +++-- lang/english/html/system_config.html | 38 +++++++++++++++---- lang/english/html/system_config_audio.html | 2 +- .../html/system_config_game_browser.html | 2 +- lang/english/html/system_config_general.html | 5 +-- lang/english/html/system_config_graphics.html | 2 +- 6 files changed, 43 insertions(+), 16 deletions(-) diff --git a/lang/english/css/config.css b/lang/english/css/config.css index ff373f7f..16d9c870 100644 --- a/lang/english/css/config.css +++ b/lang/english/css/config.css @@ -132,7 +132,7 @@ popup.tooltip color: #FFF; padding: 0.1em; margin: 0 0 0.3em 0; - width: 100%%; + width: *; border: 1px solid #54575b; border-radius: .2em; background: #2F2F31; @@ -171,9 +171,13 @@ popup.tooltip style-set: styled-select; } -ComboBox +ComboBox, +ComboBox > select, +ListBox, +ListBox > select { - width: 100%%; + display: block; + width: *; } input[type="checkbox"] { diff --git a/lang/english/html/system_config.html b/lang/english/html/system_config.html index 010f82b3..a352378a 100644 --- a/lang/english/html/system_config.html +++ b/lang/english/html/system_config.html @@ -43,13 +43,36 @@ margin: 0 0 0.5em 0; } + .form-row + { + flow: horizontal; + width: *; + vertical-align: middle; + } + .form-row .left, .form-row .right { - width: 50%%; - display: inline-block; + width: *; + vertical-align: middle; } + .form-row .right + { + flow: horizontal; + } + + .form-row .right ComboBox, + .form-row .right input[type="text"] + { + display: block; + width: *; + } + + .form-row .right input[type="hslider"] + { + width: *; + } PageNav.page_tabs { display: flex; } @@ -93,18 +116,19 @@ PageNav.page_tabs page.active { { background: color(color-config-page); border: 1px solid color(color-config-page-border); - width: 100%%; - height: 100%%; + width: *; + height: *; flow: horizontal; padding: 1em 1em 0 1em; - font-family: 'Segoe UI', Arial, sans-serif; + font-family: var(font-ui), Arial, sans-serif; font-size: 0.9rem; color: #eff0f1; } #gameDirectoryList, #addOnDirectoryList { - width: 100%%; + display: block; + width: *; } #gameDirectoryList select, @@ -118,7 +142,7 @@ PageNav.page_tabs page.active { overflow-y: auto; padding: 0.1rem; margin-bottom: 1rem; - width: 100%%; + width: *; } #gameDirectoryList option, diff --git a/lang/english/html/system_config_audio.html b/lang/english/html/system_config_audio.html index a69763db..484299f9 100644 --- a/lang/english/html/system_config_audio.html +++ b/lang/english/html/system_config_audio.html @@ -20,7 +20,7 @@