From cf62e13394f53b170b459a8414ae767213a09f1d Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 25 Feb 2021 06:13:41 -0600 Subject: [PATCH] uploads: fix source field being too short. --- app/javascript/src/styles/specific/uploads.scss | 4 ---- app/views/uploads/new.html.erb | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/javascript/src/styles/specific/uploads.scss b/app/javascript/src/styles/specific/uploads.scss index aeb5226ad..6db46860b 100644 --- a/app/javascript/src/styles/specific/uploads.scss +++ b/app/javascript/src/styles/specific/uploads.scss @@ -64,10 +64,6 @@ div#c-uploads { display: inline-block; } - div.upload_source { - display: inline-block; - } - div.upload_rating .radio label { font-weight: normal; display: inline; diff --git a/app/views/uploads/new.html.erb b/app/views/uploads/new.html.erb index 1e3b34dd4..de68df1f1 100644 --- a/app/views/uploads/new.html.erb +++ b/app/views/uploads/new.html.erb @@ -34,8 +34,9 @@
Max size: <%= number_to_human_size(Danbooru.config.max_file_size) %>. Supported filetypes: jpg, png, gif, swf, mp4, webm.
-
- <%= f.input :source, as: :string, placeholder: "Enter the URL to upload here", input_html: { value: params[:url] } %> +
+ <%= f.label :source %> + <%= f.input_field :source, as: :string, placeholder: "Enter the URL to upload here", value: params[:url] %> <%= tag.button "Similar", id: "similar-button" %>