Caption looks now broken and can be fixed by an additional hbox
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird68 fixed, thunderbird69 fixed)
People
(Reporter: TbSync, Assigned: Paenglab)
Details
Attachments
(3 files)
19.85 KB,
image/png
|
Details | |
49.42 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
49.51 KB,
patch
|
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
After bug 1501360 has landed, the caption (at least on windows) looks broken. The caption field extends all the way to the right and overlays the groupbox border.
I think Richard moved the caption below the border because of that, but he has not moved it low enough.
I played around with it, and learned that a simple hbox around the caption fixes the problem.
<groupbox>
<hbox><caption>LABEL</caption></hbox>
...
</groupbox>
I therefore would like to propose to restore the original alignment of the groupbox border (with top padding) and the alignment of the caption (50% moved upwards) and add the additional hbox.
Attached you find an image to show, how it looks on my system.
- How it looks in TB60
- How it looks in TB68 now
- How it looks in Tb68 with added hbox
- How it looks in TB68 with added hbox and manipulated CSS
Reporter | ||
Comment 1•5 years ago
|
||
Bugzilla "corrected" the numbering of the list in my last comment. This is the correct list:
1: How it looks in TB60
4: How it looks in TB68 now
3: How it looks in Tb68 with added hbox
2: How it looks in TB68 with added hbox and manipulated CSS
Reporter | ||
Comment 2•5 years ago
|
||
Just for reference, this is the CSS manipulation I used to re-align the border and caption:
<groupbox style="margin-top:1em">
<hbox style="margin-top:-1em; margin-bottom:-5px">
<caption style="padding:3px">&quicktext.settings.label;</caption>
</hbox>
...
</groupbox>
I assume there are better ways to do it, but this worked for me. But as outlined in the IRC chat, it would be great, if these or similar CSS manipulations could make it into messenger.css, so add-on authors only have to put the hbox around the caption and it automatically looks good on all systems.
Reporter | ||
Comment 3•5 years ago
|
||
The CSS rules for messenger.css (at least for windows), could look like this:
groupbox {
margin-top: 1em;
}
groupbox > hbox:first-child {
margin-top: -1em;
margin-bottom: -5px;
}
caption {
padding: 3px;
font-weight: normal;
}
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
This patch makes the look of the groupboxes like on TB 60.
I also found some remnant <caption> (and one newly introduced by an OTR bug). In imAccountWizard where was also a no more working collapsing of the groupboxes which I removed here. The captions where also not showed, which is fixed now.
John, <caption> is removed in bug 1493844 and we changed <caption> to <label class="header"> in bug 1512215. And with this bug here you need to use this structure:
<groupbox>
<hbox class="groupbox-title">
<label class="header">YOUR LABEL</label>
</hbox>
groupbox body content
</groupbox>
Beta needs a slightly different patch. I'll create one when this patch is reviewed.
Comment 5•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Reporter | ||
Comment 8•5 years ago
|
||
Thanks for your work! I updated the doc.
Comment 9•5 years ago
|
||
Will be fixed in beta 3, beta 2 is already "out the door".
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/3d905e57ebe0
Make the caption look more native. r=jorgk
Comment 11•5 years ago
|
||
TB 68 beta 3:
https://hg.mozilla.org/releases/comm-beta/rev/facbdadc0033af95c83b71d1b9a1224e4cdb7f64
Description
•