Skip to content

Commit 9268d5f

Browse files
committed
dnd: Restore tooltip visibility after duration selection and improve dropdown styling.
Ensures that the DND tooltip remains usable after selecting a duration. Updated styles to better match Zulip's dark theme (rounded corners, shadows, etc.). Fixes #561.
1 parent 8be20aa commit 9268d5f

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

app/renderer/css/main.css

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -381,22 +381,26 @@ webview.focus {
381381
.dropdown {
382382
position: absolute;
383383
left: 60px;
384-
background-color: rgb(44 44 44 / 100%);
385-
border: 1px solid rgb(68 68 68 / 100%);
386-
color: rgb(255 255 255 / 100%);
387-
z-index: 10;
388-
padding: 5px 0;
389-
font-size: 14px;
384+
background-color: rgb(32 33 36 / 100%); /* closer to Zulip's sidebars */
385+
border: 1px solid rgb(60 60 60 / 100%);
386+
border-radius: 8px;
387+
color: rgb(240 240 240 / 100%);
388+
z-index: 1000;
389+
padding: 4px 0;
390+
font-size: 13px;
391+
font-family: arial, sans-serif;
390392
min-width: 150px;
393+
box-shadow: 0 4px 12px rgb(0 0 0 / 40%);
391394
}
392395

393396
.dropdown div {
394-
padding: 6px 12px;
397+
padding: 8px 16px;
395398
cursor: pointer;
399+
transition: background-color 0.15s ease;
396400
}
397401

398402
.dropdown div:hover {
399-
background-color: rgb(68 68 68 / 100%);
403+
background-color: rgb(60 60 60 / 100%);
400404
}
401405

402406
#loading-tooltip::after,

app/renderer/js/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ export class ServerManagerView {
454454
this.$dndTooltip.classList.add("hidden");
455455
dropdown?.addEventListener("mouseleave", () => {
456456
dropdown.classList.add("hidden");
457+
this.$dndTooltip.classList.remove("hidden");
457458
});
458459
});
459460
const dropdownItems = document.querySelectorAll("#dnd-dropdown div");
@@ -1229,7 +1230,7 @@ window.addEventListener("load", async () => {
12291230
>
12301231
</div>
12311232
<div id="dnd-dropdown" class="dropdown hidden">
1232-
<div data-minutes="1">1 minute</div>
1233+
<div data-minutes="30">30 minutes</div>
12331234
<div data-minutes="60">1 hour</div>
12341235
<div data-minutes="180">3 hours</div>
12351236
<div data-minutes="720">12 hours</div>

0 commit comments

Comments
 (0)