[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Tracker Items: Improve dropdown styling and enhance link visibility

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68da149deb4c8_2cdf8405484d@gitlab-sidekiq-low-urgency-cpu-bound-v2-5cc58485fb-fvw2b.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
ab386c3e by Steven Ngesera at 2025-09-29T05:01:46+00:00
[ENH] Tracker Items: Improve dropdown styling and enhance link visibility

- - - - -


1 changed file:

- lib/cypht/modules/tiki/functions.php


Changes:

=====================================
lib/cypht/modules/tiki/functions.php
=====================================
@@ -387,12 +387,12 @@ if (! hm_exists('tiki_move_to_tracker_dropdown')) {
             }
             $fields_without_folders[] = ['tracker_id' => $field['trackerId'], 'field_id' => $field['fieldId'], 'title' => "{$tracker['name']} - {$field['name']}"];
         }
-        $res = "<div class=\"d-inline-block\">";
+        $res = "<div class=\"" . ($class != 'move_to_trackers' ? 'dropdown ' : '') . "d-inline-block\">";
         if ($class != 'move_to_trackers') {
-            $res .= "<a class=\"hlink dropdown-toggle" . (! $message_view ? ' btn btn-sm btn-light border text-black-50' : '') . "\" id=\"{$class}\" href=\"#\" data-bs-toggle='dropdown' aria-haspopup='true' aria-expanded='true' data-bs-auto-close='outside'>" . $mod->trans($title) . "</a>";
+            $res .= "<a class=\"hlink text-decoration-none btn btn-sm btn-outline-secondary dropdown-toggle" . (! $message_view ? ' btn btn-sm btn-light border text-black-50' : '') . "\" id=\"{$class}\" href=\"#\" data-bs-toggle='dropdown' aria-haspopup='true' aria-expanded='true' data-bs-auto-close='outside'>" . $mod->trans($title) . "</a>";
             $res .= "<div class='" . $class . " dropdown-menu' aria-labelledby='$class'><div class='move_to_title'>" . $mod->trans($dropdown_title) . "</div>" . implode("<br>\n", $field_list) . "</div>";
         } else {
-            $res .= "<a class=\"hlink" . (! $message_view ? ' btn btn-sm btn-light border text-black-50' : '') . "\" id=\"{$class}\" href=\"#\" >" . $mod->trans($dropdown_title) . "</a>";
+            $res .= "<a class=\"hlink text-decoration-none btn btn-sm btn-outline-secondary" . (! $message_view ? ' btn btn-sm btn-light border text-black-50' : '') . "\" id=\"{$class}\" href=\"#\" >" . $mod->trans($dropdown_title) . "</a>";
             $res .= '<script type="text/javascript">var tiki_tracker_fields = ' . json_encode($fields_without_folders) . '</script>';
         }
         $res .= "</div>";
@@ -451,7 +451,6 @@ if (! hm_exists('bind_tracker_item_update_event')) {
 if (! hm_exists('append_to_msg_headers')) {
     function append_to_msg_headers($headers, $link)
     {
-        $link = ' | ' . $link;
         $headers = preg_replace('#</div><span id="extra-header-buttons"></span>#s', $link . "\\0", $headers, 1);
 
         return $headers;



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ab386c3ee1943cfc8238787c88c4bcdce46a413d

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ab386c3ee1943cfc8238787c88c4bcdce46a413d
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.