From febaa815f7321354a77afa7ccd3faef470c3036d Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 3 Jan 2024 15:51:22 +0000 Subject: [PATCH] [setup] wider forms on setup page --- ext/setup/main.php | 4 ++-- ext/setup/style.css | 6 ++++++ ext/wiki/main.php | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ext/setup/main.php b/ext/setup/main.php index 1587060e3..c942644d0 100644 --- a/ext/setup/main.php +++ b/ext/setup/main.php @@ -222,7 +222,7 @@ public function add_int_option(string $name, string $label = null, bool $table_r { $val = $this->config->get_int($name); - $html = "\n"; + $html = "\n"; $html .= "\n"; $this->format_option($name, $html, $label, $table_row); @@ -231,7 +231,7 @@ public function add_int_option(string $name, string $label = null, bool $table_r public function add_shorthand_int_option(string $name, string $label = null, bool $table_row = false) { $val = to_shorthand_int($this->config->get_int($name)); - $html = "\n"; + $html = "\n"; $html .= "\n"; $this->format_option($name, $html, $label, $table_row); diff --git a/ext/setup/style.css b/ext/setup/style.css index c8904a5b1..56d9a40fe 100644 --- a/ext/setup/style.css +++ b/ext/setup/style.css @@ -24,3 +24,9 @@ margin: 0; padding: 0; } +.setupblock .form { + width: 100%; +} +.setupblock .form TH { + font-weight: normal; +} \ No newline at end of file diff --git a/ext/wiki/main.php b/ext/wiki/main.php index 179eacfc9..671d0bb7e 100644 --- a/ext/wiki/main.php +++ b/ext/wiki/main.php @@ -135,9 +135,9 @@ public function onSetupBuilding(SetupBuildingEvent $event) { $sb = $event->panel->create_new_block("Wiki"); $sb->add_bool_option(WikiConfig::ENABLE_REVISIONS, "Enable wiki revisions: "); - $sb->add_longtext_option(WikiConfig::TAG_PAGE_TEMPLATE, "Tag page template: "); - $sb->add_text_option(WikiConfig::EMPTY_TAGINFO, "Empty list text: "); - $sb->add_bool_option(WikiConfig::TAG_SHORTWIKIS, "Show shortwiki entry when searching for a single tag: "); + $sb->add_longtext_option(WikiConfig::TAG_PAGE_TEMPLATE, "
Tag page template: "); + $sb->add_text_option(WikiConfig::EMPTY_TAGINFO, "
Empty list text: "); + $sb->add_bool_option(WikiConfig::TAG_SHORTWIKIS, "
Show shortwiki entry when searching for a single tag: "); } public function onDatabaseUpgrade(DatabaseUpgradeEvent $event)