From 941ec9c06090f97903c4b47abfc740ec8cc72b1d Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Thu, 6 Mar 2025 15:38:12 -0700 Subject: [PATCH] Add input_height default setting (#7292) * Add input_height default setting * Update app_config.php --- themes/default/app_config.php | 8 ++++++++ themes/default/css.php | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/themes/default/app_config.php b/themes/default/app_config.php index f2bb1c2fd9..0b7d35af68 100644 --- a/themes/default/app_config.php +++ b/themes/default/app_config.php @@ -1824,6 +1824,14 @@ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the height of buttons."; $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "8aeb3718-4a00-4e27-810b-41cd169a82c5"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "input_height"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "text"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "28px"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the height of text inputs."; + $y++; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "7f8048b5-e4aa-4625-987f-5f9b80abe81b"; $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme"; $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "input_background_color"; diff --git a/themes/default/css.php b/themes/default/css.php index 957eac5ee5..39f615be5a 100644 --- a/themes/default/css.php +++ b/themes/default/css.php @@ -117,6 +117,7 @@ $body_width = $_SESSION['theme']['body_width']['text'] ?? '90%'; $heading_text_color = $_SESSION['theme']['heading_text_color']['text'] ?? '#952424'; $heading_text_size = $_SESSION['theme']['heading_text_size']['text'] ?? '15px'; $heading_text_font = $_SESSION['theme']['heading_text_font']['text'] ?? 'arial'; +$input_height = $_SESSION['theme']['input_height']['text'] ?? '28px'; $input_text_font = $_SESSION['theme']['input_text_font']['text'] ?? 'Arial'; $input_text_size = $_SESSION['theme']['input_text_size']['text'] ?? '12px'; $input_text_color = $_SESSION['theme']['input_text_color']['text'] ?? '#000'; @@ -1811,7 +1812,7 @@ else { //default: white font-size: ; color: ; text-align: left; - height: 28px; + height: ; padding: 4px 6px; margin: 1px; border-width: ;