refactor(order-card): enhance layout and styling for order state display

- Updated the layout of the OrderCard component to improve responsiveness and visual clarity.
- Adjusted flex properties for better alignment and spacing of elements.
- Moved the order state badge into a dedicated div for improved styling control.
This commit is contained in:
vchikalkin 2025-08-19 19:45:54 +03:00
parent 64dfec1355
commit 6ba18cb87d

View File

@ -31,10 +31,10 @@ export function OrderCard({
{order.order_number}
</span>
)}
<div className="flex flex-col">
<div className="flex min-w-0 flex-1 flex-col">
<div className="flex items-center gap-4">
{customer && <CustomerAvatar customer={customer} />}
<div className="flex flex-col">
<div className="flex min-w-0 flex-1 flex-col">
<ReadonlyTimeRange
datetimeEnd={order?.datetime_end}
datetimeStart={order?.datetime_start}
@ -48,7 +48,7 @@ export function OrderCard({
</div>
</div>
</div>
{order?.state && getBadge(order.state)}
<div className="ml-2 shrink-0">{order?.state && getBadge(order.state)}</div>
</div>
</Link>
);