#11841 closed enhancement (fixed)
Margin above Description text area on Basic Settings page
Reported by: | Ryan J Ollos | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.2.3 |
Component: | admin/web | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fixed poor layout of Basic Settings admin page. |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Attachments (3)
Change History (11)
by , 10 years ago
Attachment: | Chrome.png added |
---|
by , 10 years ago
Attachment: | Firefox.png added |
---|
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Milestone: | next-stable-1.0.x → next-stable-1.2.x |
---|
follow-up: 5 comment:3 by , 7 years ago
Milestone: | next-stable-1.2.x → next-dev-1.3.x |
---|
It seems the spacing between Description and the textarea
can be fixed by removing the br
:
-
trac/admin/templates/admin_basics.html
diff --git a/trac/admin/templates/admin_basics.html b/trac/admin/templates/admin_basics.html index 867dfc779..02c1d4751 100644
a b 39 39 </label> 40 40 </div> 41 41 <div class="field"> 42 <label>${_("Description:")} <br />42 <label>${_("Description:")} 43 43 <textarea name="descr" class="trac-resizable" rows="3" cols="50"> 44 44 ${project.descr}</textarea> 45 45 </label>
comment:4 by , 7 years ago
Replying to Ryan J Ollos:
Also the margin between Description and Default handler is different.
It seems to be somehow due to the rule form.mod .field label { padding-left: .2em }.
by , 7 years ago
Attachment: | 20170729T193247.png added |
---|
comment:5 by , 7 years ago
Replying to Ryan J Ollos:
It seems the spacing between Description and the
textarea
can be fixed by removing thebr
:
The following would be resulted if [trac] resizable_textareas
is disabled:
Also, the original issue is occurred on 1.2-stable with Firefox 54 but it doesn't on 1.0-stable.
comment:6 by , 7 years ago
I consider Firefox renders a newline for br element if block element is after br element. Another workaround is to use display: inline-table
rather than display: table
.
-
trac/htdocs/css/trac.css
diff --git a/trac/htdocs/css/trac.css b/trac/htdocs/css/trac.css index 66013e774..26c75f769 100644
a b table.wiki tbody tr.odd { background-color: #f7f7f7 } 678 678 .wikitoolbar a#img { background-position: 0 -128px } 679 679 680 680 /* Textarea resizer */ 681 div.trac-resizable { display: table; width: 100% }681 div.trac-resizable { display: inline-table; width: 100% } 682 682 div.trac-resizable > div { display: table-cell } 683 683 div.trac-resizable textarea { display: block; margin-bottom: 0 } 684 684 div.trac-grip {
comment:7 by , 7 years ago
Milestone: | next-dev-1.3.x → 1.2.3 |
---|---|
Release Notes: | modified (diff) |
Resolution: | → fixed |
Status: | new → closed |
comment:8 by , 7 years ago
Owner: | set to |
---|
Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.