Keep receipt action labels on one line
This commit is contained in:
@ -431,13 +431,13 @@ export function ReceiptsClient() {
|
|||||||
<span className={item.status === "FINALIZED" ? "ops-chip-active" : "ops-chip-muted"}>{item.status}</span>
|
<span className={item.status === "FINALIZED" ? "ops-chip-active" : "ops-chip-muted"}>{item.status}</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div className="flex gap-2">
|
<div className="flex flex-nowrap gap-2">
|
||||||
<button type="button" onClick={() => void openReceipt(item.id)} className="ops-btn-secondary">{dict.common.detail}</button>
|
<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">{dict.receipts.generateLots}</button> : null}
|
{item.status !== "FINALIZED" ? <button type="button" onClick={() => void generateLots(item.id)} className="ops-btn-primary whitespace-nowrap">{dict.receipts.generateLots}</button> : null}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => void printReceiptById(item.id)}
|
onClick={() => void printReceiptById(item.id)}
|
||||||
className="ops-btn-secondary"
|
className="ops-btn-secondary whitespace-nowrap"
|
||||||
>
|
>
|
||||||
<Printer className="h-4 w-4" />
|
<Printer className="h-4 w-4" />
|
||||||
{locale === "id" ? "Receipt" : "Receipt"}
|
{locale === "id" ? "Receipt" : "Receipt"}
|
||||||
@ -446,7 +446,7 @@ export function ReceiptsClient() {
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => void printLotLabelsById(item.id)}
|
onClick={() => void printLotLabelsById(item.id)}
|
||||||
className="ops-btn-secondary"
|
className="ops-btn-secondary whitespace-nowrap"
|
||||||
>
|
>
|
||||||
<Tags className="h-4 w-4" />
|
<Tags className="h-4 w-4" />
|
||||||
{locale === "id" ? "Label lot" : "Lot labels"}
|
{locale === "id" ? "Label lot" : "Lot labels"}
|
||||||
|
|||||||
Reference in New Issue
Block a user