Bug 167641

Summary: Web Inspector: Placeholder text is clipped in the 'Enter Class Name' field at the bottom of Rules style sidebar in some localizations
Product: WebKit Reporter: Blaze Burg <bburg>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, hi, inspector-bugzilla-changes, joepeck, mattbaker, nvasilyev, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
The issue
none
Patch
none
[Image] Before/After none

Blaze Burg
Reported 2017-01-31 07:18:01 PST
Created attachment 300217 [details] The issue The layout here is very narrow and hard to read in a lot of languages. I attached one example. We could try making the box wider. I think in the long-term, the class toggle/adder UI should go alongside forced pseudoclasses at the top, not at the bottom. This affects over half of our localizations for Safari.
Attachments
The issue (201.53 KB, image/png)
2017-01-31 07:18 PST, Blaze Burg
no flags
Patch (4.51 KB, patch)
2017-04-09 20:25 PDT, Nikita Vasilyev
no flags
[Image] Before/After (33.03 KB, image/png)
2017-04-09 20:41 PDT, Nikita Vasilyev
no flags
Blaze Burg
Comment 1 2017-01-31 07:18:09 PST
Matt Baker
Comment 2 2017-01-31 11:59:12 PST
(In reply to comment #0) > Created attachment 300217 [details] > The issue > > The layout here is very narrow and hard to read in a lot of languages. I > attached one example. We could try making the box wider. I think in the > long-term, the class toggle/adder UI should go alongside forced > pseudoclasses at the top, not at the bottom. Agree.
Devin Rousso
Comment 3 2017-01-31 12:09:25 PST
(In reply to comment #0) > The layout here is very narrow and hard to read in a lot of languages. I > attached one example. We could try making the box wider. I think in the > long-term, the class toggle/adder UI should go alongside forced > pseudoclasses at the top, not at the bottom. Do you imagine it being always shown, but only revealed on scroll (similar to how the pseudo-classes are right now)? If so, would this be above or below the pseudo-classes? If not, should there still be a button somewhere to enable the listing of classes?
Blaze Burg
Comment 4 2017-02-10 17:16:36 PST
(In reply to comment #3) > (In reply to comment #0) > > The layout here is very narrow and hard to read in a lot of languages. I > > attached one example. We could try making the box wider. I think in the > > long-term, the class toggle/adder UI should go alongside forced > > pseudoclasses at the top, not at the bottom. > > Do you imagine it being always shown, but only revealed on scroll (similar > to how the pseudo-classes are right now)? If so, would this be above or > below the pseudo-classes? If not, should there still be a button somewhere > to enable the listing of classes? I imagine a section called Element Overrides with a scope bar-type thing that just shows two options that can be multiply selected. When the appropriate bar item is selected we show the pseudo overrides or the class toggle section below. Element Overrides [:pseudo] [.class] ------------------------------------ [ ] :hover [ ] :active ... ------------------------------------ [ Add new class ] [ ] class1 [ ] class2 .... ------------------------------------ ... rest of the rules ... This is fairly similar to what Chrome does except our filters always go on the bottom, and it's possible to see both override sections expanded at the same time.
Nikita Vasilyev
Comment 5 2017-04-06 13:21:42 PDT
I think the add new class input field should span the entire width of the sidebar. Not only it creates issues with localization, it's just too small for many class names.
Nikita Vasilyev
Comment 6 2017-04-09 20:25:37 PDT
Nikita Vasilyev
Comment 7 2017-04-09 20:41:12 PDT
Created attachment 306646 [details] [Image] Before/After
Joseph Pecoraro
Comment 8 2017-04-10 11:09:36 PDT
Comment on attachment 306645 [details] Patch Nice! r=me
WebKit Commit Bot
Comment 9 2017-04-10 11:12:07 PDT
Comment on attachment 306645 [details] Patch Clearing flags on attachment: 306645 Committed r215192: <http://trac.webkit.org/changeset/215192>
WebKit Commit Bot
Comment 10 2017-04-10 11:12:09 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.