#11154 closed defect (worksforme)
Set a css max-width on image attachments for tickets
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | wiki system | Version: | 1.0 |
| Severity: | normal | Keywords: | css image |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Attachments (2)
Change History (11)
by , 13 years ago
| Attachment: | overflow.png added |
|---|
comment:1 by , 13 years ago
Upon further investigation, it might be better to add max-width: 100% to the img {} stylesheet rule in htdocs/css/trac.css instead.
comment:2 by , 13 years ago
| Cc: | added |
|---|
comment:3 by , 12 years ago
| Component: | general → wiki system |
|---|---|
| Keywords: | image added |
| Milestone: | → unscheduled |
| Priority: | normal → low |
See also #11116 for adjusting the margin defaults.
comment:5 by , 11 years ago
You can set max-width to 100% using a custom stylesheet: TracInterfaceCustomization#SiteAppearance. As mentioned in comment:2, you can also use the 100% argument to the ImageMacro.
I don't see anything that needs to be done for this ticket, so I propose we close it as worksforme.
comment:6 by , 11 years ago
What's the harm in setting a max-width? Why so quick to close the ticket just because there is a workaround?
The suggestion in comment:5 does nothing to address the original issue this ticket was reported for.
comment:7 by , 11 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
You can use the 100% argument to ImageMacro to set the width to 100%. [[Image(...,100%)]]. See comment:2 as well.
comment:8 by , 11 years ago
| Cc: | removed |
|---|---|
| Milestone: | unscheduled |
comment:9 by , 11 years ago
Please do not reopen tickets. If another Trac developer disagrees with anything I've stated or has another approach they are welcome to reopen the ticket. You've been provided with solutions to your issue. I don't think we will change the behavior because it would introduce inconsistencies with older versions of Trac.





Current behavior of trac