feat: disable word wrapping for invoice position prices and quantity

master
Katja Lutz 2 years ago
parent 0b55a50d76
commit 4673ba8019

@ -146,7 +146,7 @@ const Positions: Component<{
</td> </td>
<td <td
classList={{ classList={{
"align-top text-center": true, "align-top text-center !whitespace-nowrap": true,
"border-b-0 pb-0": hasTwoRows(), "border-b-0 pb-0": hasTwoRows(),
}} }}
> >
@ -154,7 +154,7 @@ const Positions: Component<{
</td> </td>
<td <td
classList={{ classList={{
"align-top text-right": true, "align-top text-right !whitespace-nowrap": true,
"border-b-0 pb-0": hasTwoRows(), "border-b-0 pb-0": hasTwoRows(),
}} }}
> >
@ -167,7 +167,7 @@ const Positions: Component<{
</td> </td>
<td <td
classList={{ classList={{
"align-top text-right ": true, "align-top text-right !whitespace-nowrap": true,
"border-b-0 pb-0": hasTwoRows(), "border-b-0 pb-0": hasTwoRows(),
"line-through": position.fixedDiscountPrice != null, "line-through": position.fixedDiscountPrice != null,
}} }}
@ -185,7 +185,7 @@ const Positions: Component<{
/> />
</Show> </Show>
</td> </td>
<td class="align-top pt-1 text-right"> <td class="align-top pt-1 text-right !whitespace-nowrap">
<Show when={position.fixedDiscountPrice != null}> <Show when={position.fixedDiscountPrice != null}>
{formatAmount(position.fixedDiscountPrice!)} CHF {formatAmount(position.fixedDiscountPrice!)} CHF
</Show> </Show>
@ -202,7 +202,7 @@ const Positions: Component<{
<td class="align-bottom">Summe</td> <td class="align-bottom">Summe</td>
<td></td> <td></td>
<td></td> <td></td>
<td class="text-right align-bottom"> <td class="text-right align-bottom !whitespace-nowrap">
{formatAmount(props.invoiceData.amountBeforeTax)} CHF {formatAmount(props.invoiceData.amountBeforeTax)} CHF
</td> </td>
</tr> </tr>
@ -214,7 +214,7 @@ const Positions: Component<{
</td> </td>
<td></td> <td></td>
<td></td> <td></td>
<td class="text-right"> <td class="text-right !whitespace-nowrap">
{formatAmount(props.invoiceData.tax)} CHF {formatAmount(props.invoiceData.tax)} CHF
</td> </td>
</tr> </tr>
@ -224,7 +224,7 @@ const Positions: Component<{
<td class="align-bottom">Gesamtbetrag</td> <td class="align-bottom">Gesamtbetrag</td>
<td></td> <td></td>
<td></td> <td></td>
<td class="align-bottom text-right"> <td class="align-bottom text-right !whitespace-nowrap">
{formatAmount(props.invoiceData.amount)} CHF {formatAmount(props.invoiceData.amount)} CHF
</td> </td>
</tr> </tr>

Loading…
Cancel
Save