Changeset 170991 in webkit
- Timestamp:
- Jul 10, 2014, 10:06:55 PM (11 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r170937 r170991 1 2014-07-10 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Debugger Continue button is incorrectly sized 4 https://bugs.webkit.org/show_bug.cgi?id=134786 5 6 Reviewed by Timothy Hatcher. 7 8 Before this patch everything in the DebuggerDashboardView was flexing. 9 Normally, if the contents were not too wide, this would just behave 10 as expected and be centered. If the content was too wide, then each 11 element would flex uniformly and overlap uniformly. That was not expected. 12 13 This patch changes makes everything but the link have a non-flexible 14 size. If the link (at the end) flexs it will have a nice ellipsis 15 text truncation, and the rest of the content will be left justified. 16 17 This also fixes a few other minor issues seen in the view. 18 19 * UserInterface/Views/DebuggerDashboardView.css: 20 (.dashboard.debugger .navigation-bar): 21 Reduce the complexity, give the nav bar (the resume button) some simple padding. 22 23 (.dashboard.debugger > div): 24 Make everything non-flex by default. 25 26 (.dashboard.debugger > .location): 27 The location will have an inner element flex, so make it flex. 28 29 (.dashboard.debugger > .location > *): 30 Make everything in .location non-flex by default. 31 32 (.dashboard.debugger > .location .go-to-link): 33 Make the link flex and truncate cleanly. 34 35 (.dashboard.debugger > .location .function-name): 36 Fix vertical alignment when the toolbar has small icons. 37 38 * UserInterface/Views/DebuggerDashboardView.js: 39 (WebInspector.DebuggerDashboardView.prototype._rebuildLocation): 40 Fix class name spelling. 41 1 42 2014-07-09 Brent Fulgham <bfulgham@apple.com> 2 43 -
trunk/Source/WebInspectorUI/UserInterface/Views/DebuggerDashboardView.css
r170240 r170991 41 41 .dashboard.debugger .navigation-bar { 42 42 border: 0; 43 margin : 0 5px 0 -5px;43 margin-right: 4px; 44 44 } 45 45 … … 86 86 display: -webkit-flex; 87 87 -webkit-align-items: center; 88 -webkit-flex: none; 89 } 90 91 .dashboard.debugger > .location { 92 -webkit-flex: initial; 93 } 94 95 .dashboard.debugger > .location > * { 96 -webkit-flex: none; 88 97 } 89 98 … … 106 115 .dashboard.debugger > .location .function-name { 107 116 color: rgb(30, 30, 30); 117 padding-bottom: 1px; 108 118 } 109 119 … … 115 125 padding-bottom: 1px; 116 126 -webkit-text-decoration-color: #aaa; 127 128 -webkit-flex: initial; 129 text-overflow: ellipsis; 130 overflow: hidden; 117 131 } 118 132 -
trunk/Source/WebInspectorUI/UserInterface/Views/DebuggerDashboardView.js
r165383 r170991 62 62 WebInspector.DebuggerDashboardView.DividerStyleClassName = "divider"; 63 63 WebInspector.DebuggerDashboardView.LocationStyleClassName = "location"; 64 WebInspector.DebuggerDashboardView.FunctionNameStyleClass name = "function-name";64 WebInspector.DebuggerDashboardView.FunctionNameStyleClassName = "function-name"; 65 65 66 66 WebInspector.DebuggerDashboardView.prototype = { … … 95 95 var nameElement = document.createElement("div"); 96 96 nameElement.appendChild(document.createTextNode(functionName)); 97 nameElement.classList.add(WebInspector.DebuggerDashboardView.FunctionNameStyleClass name);97 nameElement.classList.add(WebInspector.DebuggerDashboardView.FunctionNameStyleClassName); 98 98 this._locationElement.appendChild(nameElement); 99 99
Note:
See TracChangeset
for help on using the changeset viewer.