added word break to output view, removed custome validation messages on

form
pull/6/head
Adam Townsend 2023-09-25 13:58:40 -07:00
parent 3e6500ae1c
commit 097645cd71
2 changed files with 3 additions and 5 deletions

View File

@ -1,2 +1,2 @@
<h2><a href="/" style="color: #555555;">Home</a></h2> <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>

View File

@ -2,10 +2,8 @@
<input type="url" <input type="url"
name="url" name="url"
pattern="https?://.+" pattern="https?://.+"
required
oninvalid="setCustomValidity('Enter a valid URL')"
onvalid="setCustomValidity('')"
placeholder="http://www.example.com/" placeholder="http://www.example.com/"
style="padding: 0.5rem;" /> style="padding: 0.5rem;"
required />
<input type="submit" value="Submit" style="padding: 0.5rem;" /> <input type="submit" value="Submit" style="padding: 0.5rem;" />
</form> </form>