Skip to content

Commit b5b4be6

Browse files
committed
fix(frontend): redesign dropdown tag and snooze buttons by removing border just like forword menu
1 parent c4f79d0 commit b5b4be6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

modules/imap/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,8 +1506,8 @@ function snooze_dropdown($output, $unsnooze = false) {
15061506
function tags_dropdown($context, $headers) {
15071507
$folders = $context->get('tags', array());
15081508
$txt = '<div class="dropdown d-inline-block">
1509-
<button type="button" class="btn btn-outline-success btn-sm dropdown-toggle" id="dropdownMenuSnooze" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">'.$context->trans('Tags').'</button>
1510-
<ul class="dropdown-menu" aria-labelledby="dropdownMenuSnooze">';
1509+
<button type="button" class="btn btn-outline-success btn-sm dropdown-toggle" id="dropdownMenuTag" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">'.$context->trans('Tags').'</button>
1510+
<ul class="dropdown-menu" aria-labelledby="dropdownMenuTag">';
15111511

15121512
$tags = !empty($headers['X-Cypht-Tags']) ? explode(',', $headers['X-Cypht-Tags']) : array();
15131513
foreach ($folders as $folder) {

modules/imap/site.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,18 @@
157157
background-color: inherit;
158158
color: inherit;
159159
}
160-
.header_links #dropdownMenuForward {
160+
.header_links #dropdownMenuForward, .header_links #dropdownMenuSnooze, .header_links #dropdownMenuTag, .header_links #dropdownMenuNexterDate {
161161
padding: 0;
162162
border: unset;
163163
font-variant: inherit;
164164
text-transform: inherit;
165165
font-size: inherit;
166166
vertical-align: baseline;
167167
}
168+
.header_links .dropdown .btn:hover, .header_links .dropdown .btn:active, .header_links .dropdown .btn:focus {
169+
color: inherit;
170+
background-color: inherit;
171+
}
168172

169173
.header_links #dropdownMenuForward:hover {
170174
background-color: inherit;

0 commit comments

Comments
 (0)