From 47114cfa3b4753081cffa2257a10798f1c7ca9cb Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Sat, 31 Dec 2022 18:32:10 +0200 Subject: [PATCH 1/2] Commit --- .gitignore | 1 + assets/styles/app.css | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 7e9e3af..caabad5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +.idea config.inc.php diff --git a/assets/styles/app.css b/assets/styles/app.css index de57bb6..8d34959 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -1,3 +1,8 @@ .scroller { overflow-y: scroll; +} + +.aliasmanager :before { + font-size: 1.1em !important; + content: "\f02c" !important; } \ No newline at end of file -- 2.45.2 From a185391f9d8c70caa643689da22a7b50831f0796 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Sat, 31 Dec 2022 18:35:57 +0200 Subject: [PATCH 2/2] Commit --- aliasmanager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aliasmanager.php b/aliasmanager.php index 0d56d9d..608d058 100644 --- a/aliasmanager.php +++ b/aliasmanager.php @@ -19,6 +19,10 @@ class aliasmanager extends rcube_plugin { throw new \Exception('cannot connect ot postfix db'); } + if ($this->rcmail->task == "mail" || $this->rcmail->task == "settings") { + $this->include_stylesheet('assets/styles/app.css'); + } + if ($this->rcmail->task == "settings") { $this->add_hook("settings_actions", [$this, "hookSettingsActions"]); $this->register_action('plugin.aliasmanager', [$this, "onShowSettingsPage"]); @@ -61,7 +65,6 @@ class aliasmanager extends rcube_plugin { */ public function settingsPageHandler() { $this->include_script('assets/scripts/app.js'); - $this->include_stylesheet('assets/styles/app.css'); $this->rcmail->output->add_label("settings_menu_label"); -- 2.45.2