Keep receipt action labels on one line

This commit is contained in:
2026-05-29 06:17:05 +07:00
parent 2df17526c9
commit 3a52d29f8c

View File

@ -431,13 +431,13 @@ export function ReceiptsClient() {
<span className={item.status === "FINALIZED" ? "ops-chip-active" : "ops-chip-muted"}>{item.status}</span>
</td>
<td>
<div className="flex gap-2">
<button type="button" onClick={() => void openReceipt(item.id)} className="ops-btn-secondary">{dict.common.detail}</button>
{item.status !== "FINALIZED" ? <button type="button" onClick={() => void generateLots(item.id)} className="ops-btn-primary">{dict.receipts.generateLots}</button> : null}
<div className="flex flex-nowrap gap-2">
<button type="button" onClick={() => void openReceipt(item.id)} className="ops-btn-secondary whitespace-nowrap">{dict.common.detail}</button>
{item.status !== "FINALIZED" ? <button type="button" onClick={() => void generateLots(item.id)} className="ops-btn-primary whitespace-nowrap">{dict.receipts.generateLots}</button> : null}
<button
type="button"
onClick={() => void printReceiptById(item.id)}
className="ops-btn-secondary"
className="ops-btn-secondary whitespace-nowrap"
>
<Printer className="h-4 w-4" />
{locale === "id" ? "Receipt" : "Receipt"}
@ -446,7 +446,7 @@ export function ReceiptsClient() {
<button
type="button"
onClick={() => void printLotLabelsById(item.id)}
className="ops-btn-secondary"
className="ops-btn-secondary whitespace-nowrap"
>
<Tags className="h-4 w-4" />
{locale === "id" ? "Label lot" : "Lot labels"}