Skip to content

Commit ea59a02

Browse files
author
Deep
committed
css: Align server tooltip with sidebar for security
Previously, the server tooltip was positioned too far to the right, leaving a gap that entirely disconnected it from the trusted native sidebar (breaking the 'Line of Death' security boundary). This aligns the server tooltip's positioning with other sidebar tooltips (like Settings and DND) by standardizing the 'left' offset while ensuring the tooltip arrow explicitly overlaps the trusted sidebar area. This maintains the visual security boundary while fixing the visual inconsistency that was reported. Fixes #1087.
1 parent 7da12ba commit ea59a02

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

app/renderer/css/main.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ webview.focus {
374374
#setting-tooltip {
375375
font-family: sans-serif;
376376
background: rgb(34 44 49 / 100%);
377-
margin-left: 48px;
377+
margin-left: 0;
378+
left: 58px;
378379
padding: 6px 8px;
379380
position: absolute;
380381
margin-top: 0;
@@ -397,14 +398,14 @@ webview.focus {
397398
border-right: 8px solid rgb(34 44 49 / 100%);
398399
position: absolute;
399400
top: 7px;
400-
right: 68px;
401+
left: -8px;
401402
}
402403

403404
#add-server-tooltip,
404405
.server-tooltip {
405406
font-family: arial, sans-serif;
406407
background: rgb(34 44 49 / 100%);
407-
left: 56px;
408+
left: 58px;
408409
padding: 10px 20px;
409410
position: fixed;
410411
margin-top: 11px;
@@ -424,7 +425,7 @@ webview.focus {
424425
border-right: 8px solid rgb(34 44 49 / 100%);
425426
position: absolute;
426427
top: 10px;
427-
left: -5px;
428+
left: -8px;
428429
}
429430

430431
#collapse-button {

0 commit comments

Comments
 (0)