Opened 11 years ago
Closed 11 years ago
#11678 closed enhancement (fixed)
Add a small amount of padding to textareas
| Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.2 |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: |
Added padding and improved positioning of |
||
| API Changes: |
The |
||
| Internal Changes: | |||
Description
Many of the textareas, including the ticket comment textarea, have padding: 0. One consequence is that underscores can be hidden when typing on the last line in the textarea. It would also be more visually appealing to have a small amount of padding, say 2px.
Attachments (0)
Change History (7)
comment:2 by , 11 years ago
Another issue to fix is that this rule doesn't work well with box-sizing: border-box. For example, on the report edit page after #11106, the input and textarea are shifted slightly to the right. I think we can add a trac-fullwidth class for textareas and inputs that has width: 100%, box-sizing: border-box, margin-left: 0 (and possibly other rules). Also, I think comment:20:ticket:11106 will be made irrelevant by these changes.
I will push the changes in #11499 before proposing these additional changes though.
comment:3 by , 11 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:4 by , 11 years ago
Quick implementation in log:rjollos.git:t11678.1. I'll spend more time testing the changes tomorrow.
comment:5 by , 11 years ago
Looks good to me. However, in [5e1db271/rjollos.git], I think we should add margin-right: 0 to .trac-fullwidth just like margin-left: 0.
-
trac/htdocs/css/trac.css
diff --git a/trac/htdocs/css/trac.css b/trac/htdocs/css/trac.css index 49a88f0..274761f 100644
a b textarea.trac-fullwidth, input.trac-fullwidth { 187 187 -moz-box-sizing: border-box; 188 188 box-sizing: border-box; 189 189 margin-left: 0; 190 margin-right: 0; 190 191 width: 100%; 191 192 } 192 193 textarea.trac-fullwidth { padding: 2px; }
comment:6 by , 11 years ago
It seems that the rule trunk/trac/htdocs/css/report.css@12954:96#L84 has no effect, but it would be good to have a small amout of spacing between the label and textarea.



Adding non-zero padding would lead textarea to overflow container when
width: 100%for the textarea. However, ifbox-sizing: border-boxis also added, good to me.Also, we could remove negative margins from
css/ticket.cssbybox-sizing: border-box.