Closed
Bug 1294840
Opened 10 years ago
Closed 10 years ago
'add-filter' , 'toggle-preset' and 'add-preset (plus button)' are not vertically aligned
Categories
(DevTools :: Inspector: Rules, defect, P2)
DevTools
Inspector: Rules
Tracking
(firefox51 verified)
VERIFIED
FIXED
Firefox 51
| Tracking | Status | |
|---|---|---|
| firefox51 | --- | verified |
People
(Reporter: Towkir, Assigned: Towkir)
References
Details
Attachments
(3 files, 3 obsolete files)
the plus button (add-filter) and the toggle button (toggle-preset) are not vertically aligned with the 'Select a Filter' dropdown.
See attached screenshot to understand the issue.
| Assignee | ||
Comment 1•10 years ago
|
||
Hey, Julian.
What is your opinion about this ?
Attachment #8780687 -
Flags: review?(jdescottes)
Updated•10 years ago
|
Priority: -- → P2
Comment 2•10 years ago
|
||
Comment on attachment 8780687 [details] [diff] [review]
vertical_alignment.patch
Review of attachment 8780687 [details] [diff] [review]:
-----------------------------------------------------------------
Here the display is quite different between Windows, OSX, and Linux. Mostly because the default font-size is much bigger on Linux.
Adding a margin top will fix the issue for Linux, but will change the layout on other platforms (will actually increase the select's height). I would advise to add "align-items: center" to the .footer selector here.
::: devtools/client/shared/widgets/filter-widget.css
@@ +232,4 @@
> font-size: 0;
> vertical-align: middle;
> cursor: pointer;
> + margin: 5px 5px;
FYI: this is equivalent to margin: 5px;
Attachment #8780687 -
Flags: review?(jdescottes)
| Assignee | ||
Comment 3•10 years ago
|
||
Okay then, Here it is ...
Attachment #8780687 -
Attachment is obsolete: true
Attachment #8780853 -
Flags: review?(jdescottes)
| Assignee | ||
Comment 4•10 years ago
|
||
Oh, wait
there is another issue which rises with the fix of this bug, the "plus / add" button beside the "Preset Name" gets a little bit lower. (see attachment)
this happens because of the margin on : https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/widgets/filter-widget.css#46
removing the margin (which means removing the rule on line 45) fixes this too.
What do you think ?
Should it be done ? If yes, then should there be another bug ? or I can update the current patch ?
Flags: needinfo?(jdescottes)
Comment 5•10 years ago
|
||
(In reply to [:Towkir] Ahmed from comment #4)
> Created attachment 8780924 [details]
> side-effect.JPG
>
> Oh, wait
> there is another issue which rises with the fix of this bug, the "plus /
> add" button beside the "Preset Name" gets a little bit lower. (see
> attachment)
> this happens because of the margin on :
> https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/
> widgets/filter-widget.css#46
> removing the margin (which means removing the rule on line 45) fixes this
> too.
> What do you think ?
> Should it be done ? If yes, then should there be another bug ? or I can
> update the current patch ?
Yes good catch, please remove the margin-top: 4px here. You can amend your changeset and resubmit it for review, no need for a separate bug here. Thanks!
Flags: needinfo?(jdescottes)
Comment 6•10 years ago
|
||
Comment on attachment 8780853 [details] [diff] [review]
vertical_alignment.patch
Review of attachment 8780853 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, as discussed above let's also remove the margin-top rule.
Attachment #8780853 -
Flags: review?(jdescottes) → feedback+
| Assignee | ||
Comment 7•10 years ago
|
||
As the patch will be updated, updating the summary for now, so that it becomes easy to understand the exact purpose and fix of this bug.
Summary: 'add-filter' and 'toggle-preset' are not vertically aligned → 'add-filter' , 'toggle-preset' and 'add-preset (plus button)' are not vertically aligned
| Assignee | ||
Comment 8•10 years ago
|
||
Hope this one fixes all of the mentioned issues
Attachment #8780853 -
Attachment is obsolete: true
Attachment #8781208 -
Flags: review?(jdescottes)
Comment 9•10 years ago
|
||
Comment on attachment 8781208 [details] [diff] [review]
vertical_alignment.patch
Review of attachment 8781208 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the patch! I'm giving an r+ here, but you need to amend your patch and change the commit message.
First of all the summary is a bit too long here:
"Bug 1294840 - Fixed vertical alignment of 'add-filter' , 'toggle-preset' and 'add-preset (plus button)' in devtools: css rule inspector" -> Maybe instead of 'add-filer' etc... just say 'filter widget buttons'.
Also please add ';r=jdescottes' at the end of the summary.
Pushed to try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c60c749a1af7
Thanks!
Attachment #8781208 -
Flags: review?(jdescottes) → review+
| Assignee | ||
Comment 10•10 years ago
|
||
All done.
Attachment #8781208 -
Attachment is obsolete: true
Attachment #8781585 -
Flags: review?(jdescottes)
Comment 11•10 years ago
|
||
Comment on attachment 8781585 [details] [diff] [review]
vertical_alignment.patch
Review of attachment 8781585 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks! FYI, if you already have r+ on a patch, you can simply set the r+ flag on your new attachment yourself :)
(unless of course you made huge modifications since the version that got r+, which would be worth reviewing again).
Attachment #8781585 -
Flags: review?(jdescottes) → review+
Comment 12•10 years ago
|
||
Try is green except for unrelated intermittents -> checkin-needed.
Keywords: checkin-needed
Comment 13•10 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/fx-team/rev/e12e7f9d42fe
Fix vertical alignment of 'filter widget buttons' in devtools: css rule inspector. r=jdescottes
Keywords: checkin-needed
Comment 14•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Comment 15•10 years ago
|
||
I have reproduced this bug with Nightly 51.0a1 (2016-08-13) on Elementary OS 64bit.
This bug's fix is now verified on Latest Nightly 51.0a1
Build ID 20160901030202
User Agent Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
[bugday-20160831]
Comment 16•10 years ago
|
||
I have reproduced this bug with Nightly 51.0a1 (2016-08-12) on Windows 7, 64 Bit !
This bug's reproduce is verified with latest Nightly
Build ID 20160831030224
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:51.0) Gecko/20100101 Firefox/51.0
[bugday-20160831]
| Assignee | ||
Updated•10 years ago
|
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•