Skip to content

Commit 154dfa7

Browse files
🎨 style: enhance NavBar UX with visual cues and accessibility improvements
Improved the NavBar component's user experience and accessibility by adding visual cues and enhancing interactive elements' responsiveness. - Integrated the `ExternalLink` icon from `lucide-react` to visually indicate external links, making it clearer to users when a link will take them outside of the application. - Added `select-none` and `cursor-pointer` classes to improve the interactive elements' usability. These changes prevent text selection for labels, making the UI feel more app-like, and change the cursor to a pointer on hover to better indicate clickable items. - These modifications aim to make the navigation bar more intuitive and user-friendly, encouraging easier navigation and interaction within the application.
1 parent 83f7ea8 commit 154dfa7

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎apps/desktop/src/components/NavBar.tsx‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { useEffect, useMemo, useState } from "react";
2727
import { Label } from "./ui/label";
2828
import { Switch } from "./ui/switch";
2929
import { useTheme } from "./theme-provider";
30+
import { ExternalLink } from "lucide-react";
3031

3132
export function NavBar() {
3233
const [account, setAccount] = useState<Account | null>(null);
@@ -85,7 +86,7 @@ export function NavBar() {
8586
</Button>
8687
</DropdownMenuTrigger>
8788
<DropdownMenuContent className="w-56" align="end" forceMount>
88-
<DropdownMenuLabel className="font-normal">
89+
<DropdownMenuLabel className="font-normal select-none">
8990
<div className="flex flex-col space-y-1">
9091
<p className="text-sm font-medium leading-none">
9192
{account?.user?.name}
@@ -101,15 +102,20 @@ export function NavBar() {
101102
onClick={() => {
102103
window.electron.openInBrowser("https://screenlink.io/app");
103104
}}
105+
className={"cursor-pointer"}
104106
>
105-
Recordings
107+
Recordings <ExternalLink className="h-4 w-4 inline ml-1" />
106108
</DropdownMenuItem>
107109
<DialogTrigger asChild>
108-
<DropdownMenuItem>Settings</DropdownMenuItem>
110+
<DropdownMenuItem className={"cursor-pointer"}>
111+
Settings
112+
</DropdownMenuItem>
109113
</DialogTrigger>
110114
</DropdownMenuGroup>
111115
<DropdownMenuSeparator />
112-
<DropdownMenuItem onClick={logout}>Log out</DropdownMenuItem>
116+
<DropdownMenuItem onClick={logout} className={"cursor-pointer"}>
117+
Log out
118+
</DropdownMenuItem>
113119
</DropdownMenuContent>
114120
</DropdownMenu>
115121
<DialogContent>

0 commit comments

Comments
 (0)