Skip to content

Commit c27a293

Browse files
committed
feat(ui): add sidebar title "Code Snippets"
1 parent 7573348 commit c27a293

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/i18n/locales/en_US/ui.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
}
9494
},
9595
"sidebar": {
96+
"title": "Code Snippets",
9697
"inbox": "Inbox",
9798
"favorites": "Favorites",
9899
"allSnippets": "All Snippets",

src/renderer/components/sidebar/Sidebar.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ import { i18n } from '@/electron'
77
data-sidebar
88
class="flex h-full flex-col px-1 pt-[var(--content-top-offset)]"
99
>
10+
<div class="truncate px-1 pb-2 font-bold select-none">
11+
{{ i18n.t("sidebar.title") }}
12+
</div>
1013
<UiText
1114
as="div"
1215
variant="caption"
1316
weight="bold"
1417
uppercase
15-
class="flex gap-1 pt-2 pb-1 pl-1 select-none"
18+
class="flex gap-1 pb-1 pl-1 select-none"
1619
>
1720
{{ i18n.t("sidebar.library") }}
1821
</UiText>

0 commit comments

Comments
 (0)