added word break to output view, removed custome validation messages on
form
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
||||
<h2><a href="/" style="color: #555555;">Home</a></h2>
|
||||
<h2><a href="<%= @new_link %>" target="_blank" style="color: #555555;"><%= @new_link %></a></h2>
|
||||
<h3 style="overflow-wrap: break-word; word-wrap: break-word;"><a href="<%= @new_link %>" target="_blank" style="color: #555555;"><%= @new_link %></a></h3>
|
||||
|
||||
+2
-4
@@ -2,10 +2,8 @@
|
||||
<input type="url"
|
||||
name="url"
|
||||
pattern="https?://.+"
|
||||
required
|
||||
oninvalid="setCustomValidity('Enter a valid URL')"
|
||||
onvalid="setCustomValidity('')"
|
||||
placeholder="http://www.example.com/"
|
||||
style="padding: 0.5rem;" />
|
||||
style="padding: 0.5rem;"
|
||||
required />
|
||||
<input type="submit" value="Submit" style="padding: 0.5rem;" />
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user