[dyad] Fixed URL input validation - wrote 1 file(s)
This commit is contained in:
@@ -74,8 +74,8 @@ export function MetaForm() {
|
|||||||
<Globe className="absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground" />
|
<Globe className="absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground" />
|
||||||
<Input
|
<Input
|
||||||
name="url"
|
name="url"
|
||||||
type="url"
|
type="text"
|
||||||
placeholder="https://example.com"
|
placeholder="example.com"
|
||||||
required
|
required
|
||||||
className="pl-10 h-12 text-base rounded-lg shadow-sm"
|
className="pl-10 h-12 text-base rounded-lg shadow-sm"
|
||||||
value={url}
|
value={url}
|
||||||
@@ -217,7 +217,7 @@ export function MetaForm() {
|
|||||||
<Edit className="h-4 w-4" />
|
<Edit className="h-4 w-4" />
|
||||||
)}
|
)}
|
||||||
<span className="sr-only">{isEditingDescription ? "Done editing" : "Edit"}</span>
|
<span className="sr-only">{isEditingDescription ? "Done editing" : "Edit"}</span>
|
||||||
</Button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-sm text-muted-foreground mt-1 mb-2">
|
<p className="text-sm text-muted-foreground mt-1 mb-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user