Skip to content

Commit 45914df

Browse files
authored
Increase width for the forms (#2)
1 parent 9f4353c commit 45914df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

react_form.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const {{.Name}}: React.FC = () => {
3737
}
3838

3939
return (
40-
<div class="bg-gray-100 flex items-center justify-center h-screen">
41-
<div class="bg-white p-8 rounded-lg shadow-lg w-96">
40+
<div className="bg-gray-100 flex items-center justify-center h-screen">
41+
<div className="bg-white p-8 rounded-lg shadow-lg w-2/6 min-w-96">
4242
<h1 className="text-3xl text-center">{{.Name | toSpaceDelimited | toTitle}}</h1>
4343
{message && <p className="text-blue-500 text-center">{message}</p>}
4444
<form onSubmit={submit}>

templ_form.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
templ {{.Name}}(data res.TemplateData) {
88
<div class="bg-gray-100 flex items-center justify-center h-screen">
9-
<div class="bg-white p-8 rounded-lg shadow-lg w-96">
9+
<div class="bg-white p-8 rounded-lg shadow-lg w-2/6 min-w-96">
1010
<h1 class="text-3xl text-center">{{.Name | toTitle}}</h1>
1111
<form action="{{.Route}}" method="POST" enctype="multipart/form-data">
1212
@csrf()

0 commit comments

Comments
 (0)