Opened 14 years ago
Closed 14 years ago
#9436 closed enhancement (fixed)
add nowrap in some css
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | low | Milestone: | 0.12.2 |
Component: | i18n | Version: | |
Severity: | trivial | Keywords: | |
Cc: | al.prudnikov@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I upgrade the trac to 0.12,now I can use my language — chinese,but a little trouble for css problem:
In report the word "edit" translate to "编辑",it display as
编 辑
I change the trac\htdocs\css\report.css
line 90 add — white-space: nowrap;
.tickets tbody td, .reports tbody td { padding: .1em .5em !important; white-space: nowrap;}
It will be ok.So please modify the source code to work fine
Attachments (2)
Change History (19)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
trac.css : line 459
table.listing th { text-align: left; padding: 0 1em .1em 0; font-size: 12px ; white-space: nowrap;}
follow-up: 4 comment:3 by , 14 years ago
Owner: | set to |
---|---|
Priority: | normal → low |
Severity: | normal → trivial |
Status: | new → assigned |
Type: | defect → enhancement |
I've seen the same problem for the swedish locale as well. I'll get back with a patch fixing this, in august, after a looong vacation :)
However, please add your findings here until then.
follow-up: 5 comment:4 by , 14 years ago
Replying to mrelbe:
However, please add your findings here until then.
Hey Mikael, holidays are over! Where's that patch? :)
More seriously, we would need a patch pretty soon if this should be fixed in 0.12.1, otherwise please re-target to next-minor-0.12.x
comment:5 by , 14 years ago
Replying to rblank:
Hey Mikael, holidays are over! Where's that patch? :)
No please, not yet :)
More seriously, we would need a patch pretty soon if this should be fixed in 0.12.1, otherwise please re-target to next-minor-0.12.x
Thanks for reminding me — I have been away for a very long time and feel totally out of the loop. Can you give me a couple of days/nights to recap?
comment:6 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
As this issue was my fault, I took the liberty to apply a fix in [10059] so that people would not get too annoyed about this still being in 0.12.1. I hope you don't mind.
comment:7 by , 14 years ago
Owner: | changed from | to
---|
by , 14 years ago
Attachment: | wrong_wrap.png added |
---|
comment:9 by , 14 years ago
Cc: | added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
comment:10 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fixed in [10112], thanks for the heads-up.
follow-up: 12 comment:11 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
+.tickets tbody td, .reports tbody td { padding: .1em .5em !important; white-space: nowrap; }
The above white-space: nowrap
added in r10059 breaks the listing if View Description is turned on, as long paragraph lines in ticket descriptions will be forced to single line and will overflow (at least in Chrome and Firefox).
That particular change on td doesn't seem necessary to fix the present issue, ok to revert this line?
comment:12 by , 14 years ago
Replying to cboos:
That particular change on td doesn't seem necessary to fix the present issue, ok to revert this line?
This looks indeed like a mistake, as I only remember working on the table headings. Yes, please revert.
comment:13 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Reverted the line from comment:11 in [10229]. I'll leave the milestone at 0.12.1, as the original issue was fixed there.
by , 14 years ago
Attachment: | wrapped-action-words.png added |
---|
Action words are wrapped in report page for Japanese (r10505)
comment:14 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
In Japanese, the action words are wrapped in report page. The original issue maybe happens in Chinese, also.
-
trac/ticket/templates/report_list.html
29 29 <tr py:when="reports" py:for="id, title, can_edit, can_delete in reports"> 30 30 <td class="report"><a title="View report" href="${href.report(id)}">{$id}</a></td> 31 31 <td class="title"><a title="View report" href="${href.report(id)}">$title</a></td> 32 <td py:if="any_edit"><a py:if="can_edit" href="${href.report(id, action='edit')}"32 <td class="action" py:if="any_edit"><a py:if="can_edit" href="${href.report(id, action='edit')}" 33 33 title="Edit report">Edit</a></td> 34 <td py:if="any_delete"><a py:if="can_delete" href="${href.report(id, action='delete')}"34 <td class="action" py:if="any_delete"><a py:if="can_delete" href="${href.report(id, action='delete')}" 35 35 title="Delete report">Delete</a></td> 36 36 </tr> 37 37 <tr py:otherwise=""> -
trac/htdocs/css/report.css
84 84 /* Styles for the report list and the report results table 85 85 (extends the styles for "table.listing") */ 86 86 .reports td.title { width: 100%; white-space: normal; } 87 .reports td.action { white-space: nowrap; } 87 88 .tickets tbody:first-child tr.trac-group h2 { margin-top: 0; } 88 89 .tickets tr.trac-group { border: none; } 89 90 .tickets tr.trac-group:hover { background: none !important; }
comment:15 by , 14 years ago
Heh, now at least I remember why I set the "nowrap" in the first place :)
Looks good to me. I suggest we still apply this for 0.12.2.
comment:16 by , 14 years ago
Ok, with .reports
in front, seems isolated enough to not risk breaking anything else.
comment:17 by , 14 years ago
Milestone: | 0.12.1 → 0.12.2 |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
Applied in r10506. Thanks!
all the table th perhaps need nowrap too,otherwise the "报表" displayed as