#11471 closed enhancement (fixed)
Summary and Reporter fields should span width of Description text area
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.2 |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | css |
Cc: | Branch: | ||
Release Notes: |
Improved layout of elements in the ticket properties box. For Trac 1.1.2, the |
||
API Changes: | |||
Internal Changes: |
Description
There is unused space to the right of the Summary and Reporter fields in the Properties fieldset. The additional space would be useful for the Summary and improve the visual layout. See also #11106.
Attachments (9)
Change History (26)
comment:1 by , 11 years ago
Status: | new → assigned |
---|
by , 11 years ago
Attachment: | before.png added |
---|
by , 11 years ago
by , 11 years ago
Attachment: | before2.png added |
---|
by , 11 years ago
Attachment: | after2.png added |
---|
by , 11 years ago
Attachment: | before3.png added |
---|
by , 11 years ago
Attachment: | after3.png added |
---|
follow-up: 5 comment:2 by , 11 years ago
comment:3 by , 11 years ago
I think that
#properties table td input,
should be
#properties table td input[type=text],
e.g. radio button and checkbox.
comment:4 by , 11 years ago
Thanks, I forgot to test those two cases. Changes have been added to log:rjollos.git:t11471.
comment:5 by , 11 years ago
- Here is the before and after with the Summary and Reporter expanded to fit the width of the properties box.
+1, agreed. I've applied the same to custom Trac instances which our company serves.
- Other
input
s can also use more of the available width.
If a milestone has very long name, the text field would be too wide.
In the Trac instances, I've applied like this.
#properties table { table-layout: fixed } #properties table td select { max-width: 100% }
See [f0df2bed/jomae.git].
- The
textarea
s could span the width of the the enclosingtd
as well. This overrides thecols
parameter. We could keep thecols
parameter functional, but I wonder what value it has since thetextarea
is always a fullrow.
+1 for trunk.
by , 11 years ago
Attachment: | wrap-radiobuttons.png added |
---|
follow-up: 7 comment:6 by , 11 years ago
I like the changes that limit the width of the select
s, but the second header column doesn't seem to be the right width after applying those changes (it should be 20%
, but it's much wider even if the custom field with the long label is removed).
Other changes for consideration:
- Wrap the
label
's content if they become too wide. - Wrap the radio buttons if there are too many entries for the width.
Revised changes in log:rjollos.git:t11471.2.
comment:7 by , 11 years ago
- Wrap the radio buttons if there are too many entries for the width.
It would be good to add margin between label
s.
#properties table td.col1 label, -#properties table td.col2 label { float: left; } +#properties table td.col2 label { float: left; margin-right: 0.5em } #properties table td select { max-width: 100% }
comment:8 by , 11 years ago
The right-margin
on the label
s is a good addition. I'm still not sure what to do about the widths of the th
s and td
s. The image in comment:6 shows that the widths are 146px | 194px | 194px | 193px, but should be 20% | 30% | 20% | 30% = 145px | 218px | 145px | 218px.
by , 11 years ago
Attachment: | TicketProperties.png added |
---|
comment:9 by , 11 years ago
The issue seems to be that with table-layout: fixed
the width of the cells in the first row are applied to all of the rows, and the colspan
forces columns 2, 3 and 4 to the same width (SO:8848758).
At first I tried adding the following as the first row,
<tr> <th class="col1"></th><td class="col1"></td> <th class="col2"></th><td class="col2"></td> </tr>
which works except that the empty row takes up a small bit of vertical space. SO:10712993 seems to have a better suggestion of using col
elements. The result looks nice as far as I can see,
Here if the before, for comparison:
Latest changes can be found in log:rjollos.git:t11471.2. I've tested with Chrome 31 / Firefox 26 / Opera 12.16 on Ubuntu 13.04; IE 11 / Chrome 32 / Firefox 24 (Waterfox) on Win 7.
by , 11 years ago
Attachment: | TicketProperties-before.png added |
---|
comment:10 by , 11 years ago
Release Notes: | modified (diff) |
---|
comment:11 by , 11 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Committed to 1.0-stable in [12513:12514] and merged to trunk in [12515:12516].
comment:12 by , 11 years ago
follow-up: 15 comment:14 by , 10 years ago
I built [13100] today and the Summary field is being displayed showing about 21 characters when creating a new ticket or in the Modify Ticket area. This needs to be changed. The Report field has the same problem.
follow-up: 16 comment:15 by , 10 years ago
Replying to anonymous:
I built [13100] today and the Summary field is being displayed showing about 21 characters when creating a new ticket or in the Modify Ticket area. This needs to be changed. The Report field has the same problem.
You need to do a forced refresh of your browser or perhaps you've not refreshed your static resources.
follow-up: 18 comment:16 by , 10 years ago
Replying to rjollos:
Replying to anonymous:
I built [13100] today and the Summary field is being displayed showing about 21 characters when creating a new ticket or in the Modify Ticket area. This needs to be changed. The Report field has the same problem.
You need to do a forced refresh of your browser or perhaps you've not refreshed your static resources.
I am still seeing the same results after a forced refresh. check the new line 230 in this file.
comment:18 by , 10 years ago
Replying to anonymous:
I am still seeing the same results after a forced refresh. check the new line 230 in this file.
The size
attribute is no longer necessary because we have a rule in the stylesheet that makes the text box span the width of the row. You likely don't have the new stylesheet loaded into your browser. As already mentioned, if you are running a web server you need to refresh your static assets and restart your web server.
As usual this expanded into a series of changes.
input
s can also use more of the available width.textarea
s could span the width of the the enclosingtd
as well. This overrides thecols
parameter. We could keep thecols
parameter functional, but I wonder what value it has since thetextarea
is always a fullrow.The changes described in (3) are more suitable for the trunk. I feel good about change (1), but I'm less certain about (2) and (3).
Proposed changes can be found in log:rjollos.git:t11471.