#11896 closed defect (fixed)
Fix Table Cellspacing for Custom Wiki Fields within a Trac Ticket
Reported by: | Kristen | Owned by: | Peter Suter |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.4 |
Component: | general | Version: | 1.0.1 |
Severity: | normal | Keywords: | custom field table cellspacing |
Cc: | hasienda | Branch: | |
Release Notes: |
Fixed styling of tables in |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
When adding a table to a custom wiki field in a trac ticket, the spacing between cells appears uneven as more columns are created.
This is different when adding a table to the trac ticket's description textbox.
Example markup that demonstrates the issue:
||=Column1=||=Column2=||=Column3=||
This was discussed in gdiscussion:trac-users:VUOJFTRQtHw.
Attachments (2)
Change History (10)
by , 10 years ago
Attachment: | table4.png added |
---|
by , 10 years ago
Attachment: | table5.png added |
---|
comment:1 by , 10 years ago
follow-up: 3 comment:2 by , 10 years ago
Milestone: | → next-stable-1.0.x |
---|
Might be a duplicate of #10841, or at least closely related.
comment:3 by , 10 years ago
Replying to rjollos:
Might be a duplicate of #10841, or at least closely related.
Good point! It seems this ticket is about the ticket property view, while #10841 is about the same issue in the ticket property editing form.
It would certainly make sense to use the same approach in both cases. (Either >
selectors, or new classes on tr
, td
, th
. I don't know which approach is preferable. Writing efficient CSS in 2000 seems to have required avoiding >
selectors, but apparently CSS Selector Performance has changed! (For the better) and now "authors should not need to worry about optimizing selectors".)
comment:4 by , 10 years ago
The >
selectors result in more concise and readable CSS and HTML markup, so I'd favor that change if performance is not an issue.
comment:5 by , 10 years ago
Cc: | removed |
---|---|
Description: | modified (diff) |
Milestone: | next-stable-1.0.x → 1.0.4 |
Owner: | set to |
Status: | new → assigned |
I tested and the changes look good to me. I'll push log:rjollos.git:t11896-table-cellspacing-fix at the start of milestone:1.0.4 if there is no additional feedback.
comment:6 by , 10 years ago
Description: | modified (diff) |
---|
comment:7 by , 10 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Committed to 1.0-stable in [13662:13663], merged to trunk in [13664:13665].
comment:8 by , 10 years ago
Owner: | changed from | to
---|
It seems the CSS rules for
#ticket table.properties tr
,... td
and... th
should be more specific and only apply to rows and cells of that table (instead of all contained tables), e.g.#ticket table.properties > tbody > tr
:trac/htdocs/css/ticket.css
tr { border-bottom: 1px dotted #eed }td, #ticket table.propertiesth {th {th.missing { color: #d3d398; }td { width: 30% }td p:first-child { margin-top: 0 }td p:last-child { margin-bottom: 0 }