From 63d3b2eaabe708e8b343199e925dce83cd71c225 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Fri, 16 May 2025 15:46:05 +0200 Subject: wip --- lib/bootstrap.php | 13 +++++++++++++ resources/assets/stylesheets/scss/globalsearch.scss | 2 +- resources/vue/components/GlobalSearchBar.vue | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/bootstrap.php b/lib/bootstrap.php index b1b336e..b7327a8 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -280,3 +280,16 @@ $mail_transporter->default_charset = 'UTF-8'; $mail_transporter->SetBulkMail((int)$GLOBALS['MAIL_BULK_DELIVERY']); StudipMail::setDefaultTransporter($mail_transporter); unset($mail_transporter); + +NotificationCenter::on('VueAppWillRender', function (string $event, Studip\VueApp $app): void { + if ($app->getBaseComponent() === 'GlobalSearchBar') { + $urlPrefix = URLHelper::getURL('dispatch.php', [], true); + $ownUsername = User::findCurrent()->username; + $template = << + klick + +EOF; + $app->setSlot('expand', $template); + } +}); diff --git a/resources/assets/stylesheets/scss/globalsearch.scss b/resources/assets/stylesheets/scss/globalsearch.scss index 8b5f9d4..c93e086 100644 --- a/resources/assets/stylesheets/scss/globalsearch.scss +++ b/resources/assets/stylesheets/scss/globalsearch.scss @@ -51,7 +51,7 @@ font-size: $font-size-small; margin: 0 10px; - @include icon('before', 'arr_1right', 'clickable', $font-size-small, 2px); + @include icon(before, arr_1right, $size: $font-size-small, $padding: 2px); // This is only neccessary to remove the whitespace in front of the text // Otherwise, the text would jump when getting replaced diff --git a/resources/vue/components/GlobalSearchBar.vue b/resources/vue/components/GlobalSearchBar.vue index 61e72f6..74d48a1 100644 --- a/resources/vue/components/GlobalSearchBar.vue +++ b/resources/vue/components/GlobalSearchBar.vue @@ -109,7 +109,7 @@ class="globalsearch-result-expand"> - + -- cgit v1.0