Skip to content

Commit f367e53

Browse files
committed
feat(desktop-sidebar): update sidebar buttons to match web app design
1 parent 3956252 commit f367e53

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

app/renderer/css/main.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ body {
153153
color: rgb(108 133 146 / 100%);
154154
}
155155

156+
#back-action i {
157+
transform: scaleY(-1);
158+
}
159+
156160
.tab {
157161
position: relative;
158162
margin: 2px 0;
@@ -399,6 +403,19 @@ webview.focus {
399403
top: 7px;
400404
right: 68px;
401405
}
406+
#dnd-tooltip {
407+
min-width: 220px;
408+
max-width: calc(100vw - 80px);
409+
width: auto;
410+
white-space: nowrap;
411+
padding: 6px 12px;
412+
box-sizing: border-box;
413+
text-align: left;
414+
}
415+
#dnd-tooltip::after {
416+
left: -8px;
417+
right: auto;
418+
}
402419

403420
#add-server-tooltip,
404421
.server-tooltip {

app/renderer/js/main.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,15 +1207,15 @@ window.addEventListener("load", async () => {
12071207
<i class="material-icons">add</i>
12081208
</div>
12091209
<span id="add-server-tooltip" style="display: none"
1210-
>${t.__("Add Organization")}</span
1210+
>${t.__("Add organization")}</span
12111211
>
12121212
</div>
12131213
</div>
12141214
<div id="actions-container">
1215-
<div class="action-button" id="dnd-action">
1216-
<i class="material-icons md-48">notifications</i>
1217-
<span id="dnd-tooltip" style="display: none"
1218-
>${t.__("Do Not Disturb")}</span
1215+
<div class="action-button disable" id="back-action">
1216+
<i class="material-icons md-48">subdirectory_arrow_left</i>
1217+
<span id="back-tooltip" style="display: none"
1218+
>${t.__("Go back")}</span
12191219
>
12201220
</div>
12211221
<div class="action-button hidden" id="reload-action">
@@ -1230,10 +1230,10 @@ window.addEventListener("load", async () => {
12301230
>${t.__("Loading")}</span
12311231
>
12321232
</div>
1233-
<div class="action-button disable" id="back-action">
1234-
<i class="material-icons md-48">arrow_back</i>
1235-
<span id="back-tooltip" style="display: none"
1236-
>${t.__("Go Back")}</span
1233+
<div class="action-button" id="dnd-action">
1234+
<i class="material-icons md-48">notifications</i>
1235+
<span id="dnd-tooltip" style="display: none"
1236+
>${t.__("Do Not Disturb")}</span
12371237
>
12381238
</div>
12391239
<div class="action-button" id="settings-action">

0 commit comments

Comments
 (0)