Vote #78801
完了Use number input field instead of text input for Gantt months field
0%
説明
A small UX improvement is to use a "number input":https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number instead of the classic input for the Gantt months field.
Benefits:
- users can select the number of months using the mouse or/and mouse wheel
- it validates the field value client side
- on mobile devices, the numeric keyboard is shown
!gantt_numeric_field.png!
journals
Thank you for the interesting patch. But I found that the input#months field is too wide in Firefox. Could you add some CSS to adjust the width to your patch?
*Firefox:* input#months is too wide
!{width: 400px; border: 1px solid #ccc;}.month-width-firefox@2x.png!
*Chrome:* no problem.
!{width: 400px; border: 1px solid #ccc;}.month-width-chrome@2x.png!
--------------------------------------------------------------------------------
Thanks for finding the issue. Attached is the updated patch with the fix.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The width of input#months field looks fine now. Thank you for adjusting it.
Setting target version to 4.1.0.
--------------------------------------------------------------------------------
Committed in the trunk. Thank you for improving Redmine.
--------------------------------------------------------------------------------