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
This commit is contained in:
tigeren 2025-10-19 12:58:35 +00:00
parent c9631d61b8
commit 3bed369a40
1 changed files with 17 additions and 0 deletions

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>