From bab15bc5b2d8945c794ec0c2e87ea83459e31b05 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 19 Nov 2025 13:01:47 +0100 Subject: [PATCH] add fs_x-small and fs_xx-small and ajust css em settings --- .../api/frontend/v1/stv/Config.php | 4 +- public/css/Studentenverwaltung.css | 10 ++++- system/phrasesupdate.php | 40 +++++++++++++++++++ 3 files changed, 51 insertions(+), 3 deletions(-) diff --git a/application/controllers/api/frontend/v1/stv/Config.php b/application/controllers/api/frontend/v1/stv/Config.php index d9219be7b..00a9610d9 100644 --- a/application/controllers/api/frontend/v1/stv/Config.php +++ b/application/controllers/api/frontend/v1/stv/Config.php @@ -87,6 +87,8 @@ class Config extends FHCAPI_Controller "label" => $this->p->t('stv', 'settings_fontsize'), "value" => $data['stv_font_size'] ?? "fs_normal", "options" => [ + "fs_xx-small" => $this->p->t('stv', 'settings_fontsize_xx-small'), + "fs_x-small" => $this->p->t('stv', 'settings_fontsize_x-small'), "fs_small" => $this->p->t('stv', 'settings_fontsize_small'), "fs_normal" => $this->p->t('stv', 'settings_fontsize_normal'), "fs_big" => $this->p->t('stv', 'settings_fontsize_big'), @@ -118,7 +120,7 @@ class Config extends FHCAPI_Controller $this->form_validation->set_rules( 'font_size', $this->p->t('stv', 'settings_fontsize'), - 'required|in_list[fs_small,fs_normal,fs_big,fs_huge]' + 'required|in_list[fs_xx-small,fs_x-small,fs_small,fs_normal,fs_big,fs_huge]' ); Events::trigger('stv_config_validation', $this->form_validation); diff --git a/public/css/Studentenverwaltung.css b/public/css/Studentenverwaltung.css index efd37400e..eb6becc15 100644 --- a/public/css/Studentenverwaltung.css +++ b/public/css/Studentenverwaltung.css @@ -11,8 +11,14 @@ html { font-size: .875em; } +html.fs_xx-small { + font-size: .5em; +} +html.fs_x-small { + font-size: .625em; +} html.fs_small { - font-size: .5em; + font-size: .75em; } html.fs_normal { font-size: .875em; @@ -21,7 +27,7 @@ html.fs_big { font-size: 1em; } html.fs_huge { - font-size: 1.4em; + font-size: 1.125em; } #appMenu { diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 32dcf4774..5a9bf0262 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -38960,6 +38960,46 @@ array( ) ) ), + array( + 'app' => 'core', + 'category' => 'stv', + 'phrase' => 'settings_fontsize_xx-small', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Sehr Klein', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Very Small', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'core', + 'category' => 'stv', + 'phrase' => 'settings_fontsize_x-small', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Kleiner', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Smaller', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'core', 'category' => 'stv',