Project

General

Profile

Actions

Patch #41231

closed

Expand the width of the estimated hours input field

Added by Mizuki ISHIKAWA 18 days ago. Updated 18 days ago.

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

screenshot 2024-09-09 15.54.58.png (13.6 KB) screenshot 2024-09-09 15.54.58.png Mizuki ISHIKAWA, 2024-09-09 08:55
Actions #1

Updated by Go MAEDA 18 days ago

  • Status changed from New to Closed

Committed as a part of #2464 in r23045. Thank you.

Actions

Also available in: Atom PDF