Skip to content

Commit 5da3b42

Browse files
author
Jarvis
committed
feat: add side panel toggle button to dashboard header
1 parent 1c63d3b commit 5da3b42

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/popup/screens/DashboardScreen.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,17 @@ function DashboardScreen({ vaultData, onVaultUpdate, onLock, onCompose, onDecryp
313313
<h1 className="text-2xl font-bold text-gray-900">Quack</h1>
314314
</div>
315315
<div className="flex items-center gap-3">
316+
<button
317+
onClick={() => {
318+
chrome.windows.getCurrent().then(win => {
319+
if (win.id) chrome.sidePanel.open({ windowId: win.id });
320+
});
321+
}}
322+
className="text-gray-500 hover:text-gray-700 font-medium"
323+
title="Open Side Panel"
324+
>
325+
📑
326+
</button>
316327
{onSettings && (
317328
<button
318329
onClick={onSettings}

0 commit comments

Comments
 (0)