Bug 160566 - Web Inspector: UI polish for Edit Breakpoint dialog
Summary: Web Inspector: UI polish for Edit Breakpoint dialog
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Matt Baker
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-08-04 13:56 PDT by Matt Baker
Modified: 2016-08-04 16:47 PDT (History)
8 users (show)

See Also:


Attachments
[Image] Clipped condition field (121.76 KB, image/png)
2016-08-04 13:56 PDT, Matt Baker
no flags Details
[Patch] Proposed Fix (6.88 KB, patch)
2016-08-04 14:03 PDT, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Baker 2016-08-04 13:56:39 PDT
Created attachment 285359 [details]
[Image] Clipped condition field

The add/remove action buttons should be simplified and their positions swapped (add should be first, then remove) to match Xcode 8. Also, the condition field should update its width when the popover width changes. Currently the CodeMirror input is clipped by ~40px when the popover resizes (see screenshot).

Steps to Reproduce:
1. Edit Breakpoint
2. Type stuff in condition field until cursor scrolls
  => Padding looks good!
3. Add an action
  => Popover width changes, condition field becomes wider, but editable portion stays the same width.
Comment 1 Radar WebKit Bug Importer 2016-08-04 13:57:03 PDT
<rdar://problem/27706378>
Comment 2 Matt Baker 2016-08-04 14:03:59 PDT
Created attachment 285360 [details]
[Patch] Proposed Fix
Comment 3 Timothy Hatcher 2016-08-04 15:31:12 PDT
Comment on attachment 285360 [details]
[Patch] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=285360&action=review

> Source/WebInspectorUI/UserInterface/Views/BreakpointPopoverController.css:74
> +    width: 360px; /* NOTE: Fixed value, manually tuned to .edit-breakpoint-popover-content width. */

Could this be a calc() instead?
Comment 4 Matt Baker 2016-08-04 15:41:25 PDT
Comment on attachment 285360 [details]
[Patch] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=285360&action=review

>> Source/WebInspectorUI/UserInterface/Views/BreakpointPopoverController.css:74
>> +    width: 360px; /* NOTE: Fixed value, manually tuned to .edit-breakpoint-popover-content width. */
> 
> Could this be a calc() instead?

I tried calc initially, but had some issues. I'll try again before landing.
Comment 5 WebKit Commit Bot 2016-08-04 16:47:29 PDT
Comment on attachment 285360 [details]
[Patch] Proposed Fix

Clearing flags on attachment: 285360

Committed r204152: <http://trac.webkit.org/changeset/204152>
Comment 6 WebKit Commit Bot 2016-08-04 16:47:33 PDT
All reviewed patches have been landed.  Closing bug.