Actions
Patch #41231
closedExpand the width of the estimated hours input field
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
In r22977, placeholders were set for the estimated hours and spent time fields, but the width of the estimated hours field is too narrow, so the placeholders are only visible halfway through.
I propose increasing the size of the estimated hours field from 3 to 6 to align it with the spent time field.
diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb
index 3ee16fc66..cb28c2c62 100644
--- a/app/views/issues/_attributes.html.erb
+++ b/app/views/issues/_attributes.html.erb
@@ -84,7 +84,7 @@
<% end %>
<% if @issue.safe_attribute? 'estimated_hours' %>
-<p><%= f.hours_field :estimated_hours, :size => 3, :required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
+<p><%= f.hours_field :estimated_hours, :size => 6, :required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
<% end %>
<% if @issue.safe_attribute?('done_ratio') && Issue.use_field_for_done_ratio? %>
Files
Actions