Compare commits

...

2 Commits

Author SHA1 Message Date
tigeren 301d315ed1 fix(settings): change IntelliSense folder selection handler
- Replace navigateToIntelliSenseFolder with selectIntelliSenseItemAsLibrary for button click
- Pass intelliSensePath and false as arguments to new handler function
- Update button onClick behavior to reflect new selection logic
2025-10-19 13:03:16 +00:00
tigeren 3bed369a40 feat(local-player-launcher): add cancel buttons for easier dialog dismissal
- Added a cancel button below main action buttons on the player launcher
- Inserted another cancel button inside the settings section for consistent UI
- Both buttons use ghost variant style and full width with muted text
- Enhance user experience by providing improved dialog dismissal options
2025-10-19 12:58:35 +00:00
2 changed files with 18 additions and 1 deletions

View File

@ -398,7 +398,7 @@ const SettingsPage = () => {
<div className="font-mono text-sm text-zinc-200 bg-zinc-800 p-2 rounded flex items-center justify-between">
<span className="truncate">{intelliSensePath}</span>
<button
onClick={() => navigateToIntelliSenseFolder(intelliSensePath)}
onClick={() => selectIntelliSenseItemAsLibrary(intelliSensePath, false)}
className="ml-2 px-2 py-1 bg-zinc-700 text-xs text-zinc-300 rounded hover:bg-zinc-600"
>
Select as Library

View File

@ -472,6 +472,12 @@ export default function LocalPlayerLauncher({
</Button>
</div>
<div className="flex gap-2 mt-2">
<Button onClick={onClose} variant="ghost" className="w-full text-muted-foreground">
Cancel
</Button>
</div>
<div className="mt-3 text-xs text-muted-foreground text-center">
You can change this in Settings Video Player
</div>
@ -688,6 +694,17 @@ export default function LocalPlayerLauncher({
Settings
</Button>
</div>
{/* Cancel Button */}
<div className="pt-2">
<Button
onClick={onClose}
variant="ghost"
className="w-full text-muted-foreground"
>
Cancel
</Button>
</div>
</CardContent>
</Card>
</div>