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:
parent
c9631d61b8
commit
3bed369a40
|
|
@ -472,6 +472,12 @@ export default function LocalPlayerLauncher({
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</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">
|
<div className="mt-3 text-xs text-muted-foreground text-center">
|
||||||
You can change this in Settings → Video Player
|
You can change this in Settings → Video Player
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -688,6 +694,17 @@ export default function LocalPlayerLauncher({
|
||||||
Settings
|
Settings
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Cancel Button */}
|
||||||
|
<div className="pt-2">
|
||||||
|
<Button
|
||||||
|
onClick={onClose}
|
||||||
|
variant="ghost"
|
||||||
|
className="w-full text-muted-foreground"
|
||||||
|
>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue