feat: enhance UI consistency and improve spacing across components
- Added styles for player-side toast notifications to improve user feedback. - Adjusted padding and spacing in various components for a more cohesive layout. - Updated card and dialog components to streamline visual hierarchy and enhance readability. - Refactored player panel and navigation elements for better alignment and user experience.
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
AlertTriangleIcon,
|
||||
CheckCircle2,
|
||||
LoaderCircle,
|
||||
Lock,
|
||||
WalletCards,
|
||||
XIcon,
|
||||
} from "lucide-react";
|
||||
@@ -137,7 +138,7 @@ export function HallBetPreviewDialog({
|
||||
showCloseButton={false}
|
||||
className="flex max-h-[calc(100dvh-24px)] flex-col gap-0 overflow-hidden rounded-2xl border-[#e4ebf6] bg-white p-0 shadow-[0_18px_60px_rgba(15,23,42,0.18)] ring-[#e8eef7] sm:max-h-[min(92vh,760px)] sm:max-w-lg"
|
||||
>
|
||||
<div className="relative shrink-0 px-4 pb-3 pt-5 sm:px-5">
|
||||
<div className="relative shrink-0 px-3 pb-2.5 pt-4 sm:px-4">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => onOpenChange(false)}
|
||||
@@ -172,9 +173,9 @@ export function HallBetPreviewDialog({
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="min-h-0 flex-1 overflow-y-auto border-y border-[#e8eef7] px-4 sm:px-5"
|
||||
className="min-h-0 flex-1 overflow-y-auto border-y border-[#e8eef7] px-3 sm:px-4"
|
||||
>
|
||||
<div className="space-y-4 py-4">
|
||||
<div className="space-y-3 py-3">
|
||||
{!data ? (
|
||||
<p className="text-sm text-slate-500">{t("hall.preview.empty")}</p>
|
||||
) : (
|
||||
@@ -291,7 +292,7 @@ export function HallBetPreviewDialog({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid shrink-0 grid-cols-2 gap-3 border-t border-[#e8eef7] bg-white p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:p-5">
|
||||
<div className="grid shrink-0 grid-cols-2 gap-2.5 border-t border-[#e8eef7] bg-white p-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] sm:p-4">
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
@@ -305,8 +306,9 @@ export function HallBetPreviewDialog({
|
||||
type="button"
|
||||
onClick={onConfirmPlace}
|
||||
disabled={!data || placing || !allowSubmit}
|
||||
className="h-12 rounded-lg border-0 bg-[#e5002c] text-base font-black text-white shadow-[0_10px_24px_rgba(229,0,44,0.28)] hover:bg-[#d10028] disabled:bg-slate-300 disabled:shadow-none"
|
||||
className="h-12 gap-2 rounded-lg border-0 bg-[#e5002c] text-base font-black text-white shadow-[0_10px_24px_rgba(229,0,44,0.28)] hover:bg-[#d10028] disabled:bg-slate-500 disabled:opacity-100 disabled:shadow-none"
|
||||
>
|
||||
{!allowSubmit && !placing ? <Lock className="size-5 shrink-0" aria-hidden /> : null}
|
||||
{placing
|
||||
? t("hall.preview.submitting")
|
||||
: allowSubmit
|
||||
|
||||
Reference in New Issue
Block a user