mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
feat: Whe sidebar is closed the bug button is overlapping the l...
This commit is contained in:
@@ -1394,7 +1394,8 @@ export function Sidebar() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{/* Bug Report Button */}
|
{/* Bug Report Button - Only visible in expanded sidebar */}
|
||||||
|
{sidebarOpen && (
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const api = getElectronAPI();
|
const api = getElectronAPI();
|
||||||
@@ -1413,8 +1414,33 @@ export function Sidebar() {
|
|||||||
>
|
>
|
||||||
<Bug className="w-4 h-4" />
|
<Bug className="w-4 h-4" />
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Bug Report Button - Collapsed sidebar version */}
|
||||||
|
{!sidebarOpen && (
|
||||||
|
<div className="flex items-center justify-center px-3 py-2.5">
|
||||||
|
<button
|
||||||
|
onClick={() => {
|
||||||
|
const api = getElectronAPI();
|
||||||
|
api.openExternalLink(
|
||||||
|
"https://github.com/AutoMaker-Org/automaker/issues"
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
className={cn(
|
||||||
|
"titlebar-no-drag p-1.5 rounded-lg",
|
||||||
|
"text-muted-foreground hover:text-foreground hover:bg-accent/80",
|
||||||
|
"transition-all duration-200 ease-out",
|
||||||
|
"hover:scale-105 active:scale-95"
|
||||||
|
)}
|
||||||
|
title="Report Bug / Feature Request"
|
||||||
|
data-testid="bug-report-link-collapsed"
|
||||||
|
>
|
||||||
|
<Bug className="w-4 h-4" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Project Actions - Moved above project selector */}
|
{/* Project Actions - Moved above project selector */}
|
||||||
{sidebarOpen && (
|
{sidebarOpen && (
|
||||||
<div className="flex items-center gap-2.5 titlebar-no-drag px-3 mt-4">
|
<div className="flex items-center gap-2.5 titlebar-no-drag px-3 mt-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user