aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authormihailo.vojinovic <mihailonvojinovic@gmail.com>2026-02-11 15:43:50 +0100
committermihailo.vojinovic <mihailonvojinovic@gmail.com>2026-02-11 15:43:50 +0100
commite27396236e490c0bf040fdd47901ab8ba5c714cc (patch)
tree4d27a59ddfbaad003b42c90dc8ed093092ef0b62 /src/components
parentcb16141eb62a86a7f459412d2d0078ddc4cc03db (diff)
downloadinvoice-e27396236e490c0bf040fdd47901ab8ba5c714cc.tar.gz
invoice-e27396236e490c0bf040fdd47901ab8ba5c714cc.zip
Add some small screen handling
Diffstat (limited to 'src/components')
-rw-r--r--src/components/invoice-generator.tsx18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/components/invoice-generator.tsx b/src/components/invoice-generator.tsx
index 32f2d53..3389c25 100644
--- a/src/components/invoice-generator.tsx
+++ b/src/components/invoice-generator.tsx
@@ -55,22 +55,30 @@ export const InvoiceGenerator = () => {
className="max-w-5xl rounded-sm border p-4 shadow-lg"
>
<div className="flex justify-between gap-4">
- <section className="grid auto-rows-min grid-cols-2 gap-2">
+ <section className="grid auto-rows-min gap-2 md:grid-cols-2">
<Input
{...register("from")}
placeholder="Who is this from?"
- className="col-span-2"
+ className="md:col-span-2"
/>
{errors["from"] && (
- <p className="col-span-2">{errors["from"].message ?? "Error"}</p>
+ <p className="md:col-span-2">{errors["from"].message ?? "Error"}</p>
)}
<div className="grid">
<label>Bill To</label>
- <Input {...register("bill_to")} placeholder="Who is this for?" />
+ <Input
+ {...register("bill_to")}
+ className="w-full"
+ placeholder="Who is this for?"
+ />
</div>
<div className="grid">
<label>Ship To</label>
- <Input {...register("ship_to")} placeholder="(optional)" />
+ <Input
+ {...register("ship_to")}
+ className="w-full"
+ placeholder="(optional)"
+ />
</div>
</section>
<section className="grid auto-rows-min grid-cols-2 gap-2">