Title: [253167] trunk/Source/WebInspectorUI
- Revision
- 253167
- Author
- [email protected]
- Date
- 2019-12-05 13:03:17 -0800 (Thu, 05 Dec 2019)
Log Message
Web Inspector: Elements: the Classes toggle is drawn on top of other content with no other way of scrolling to it
https://bugs.webkit.org/show_bug.cgi?id=204690
Reviewed by Timothy Hatcher.
Use a vertical flexbox for the contents of sidebar panels instead of absolute positioning so
that the variable height Classes "drawer" can have it's own scroll area and doesn't take up
any space from the rest of the panel's contents.
* UserInterface/Views/GeneralStyleDetailsSidebarPanel.js:
(WI.GeneralStyleDetailsSidebarPanel.prototype.initialLayout):
* UserInterface/Views/GeneralStyleDetailsSidebarPanel.css:
(.sidebar > .panel.details.css-style > .content):
(.sidebar > .panel.details.css-style > .content ~ :matches(.options-container, .class-list-container)):
(.sidebar > .panel.details.css-style > .content ~ .options-container):
(.sidebar > .panel.details.css-style > .content ~ .class-list-container):
(.sidebar > .panel.details.css-style > .content.has-filter-bar): Deleted.
* UserInterface/Views/Sidebar.css:
(.sidebar > .panel):
(.sidebar > .panel.selected): Deleted.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (253166 => 253167)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-12-05 20:35:24 UTC (rev 253166)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-12-05 21:03:17 UTC (rev 253167)
@@ -1,5 +1,29 @@
2019-12-05 Devin Rousso <[email protected]>
+ Web Inspector: Elements: the Classes toggle is drawn on top of other content with no other way of scrolling to it
+ https://bugs.webkit.org/show_bug.cgi?id=204690
+
+ Reviewed by Timothy Hatcher.
+
+ Use a vertical flexbox for the contents of sidebar panels instead of absolute positioning so
+ that the variable height Classes "drawer" can have it's own scroll area and doesn't take up
+ any space from the rest of the panel's contents.
+
+ * UserInterface/Views/GeneralStyleDetailsSidebarPanel.js:
+ (WI.GeneralStyleDetailsSidebarPanel.prototype.initialLayout):
+ * UserInterface/Views/GeneralStyleDetailsSidebarPanel.css:
+ (.sidebar > .panel.details.css-style > .content):
+ (.sidebar > .panel.details.css-style > .content ~ :matches(.options-container, .class-list-container)):
+ (.sidebar > .panel.details.css-style > .content ~ .options-container):
+ (.sidebar > .panel.details.css-style > .content ~ .class-list-container):
+ (.sidebar > .panel.details.css-style > .content.has-filter-bar): Deleted.
+
+ * UserInterface/Views/Sidebar.css:
+ (.sidebar > .panel):
+ (.sidebar > .panel.selected): Deleted.
+
+2019-12-05 Devin Rousso <[email protected]>
+
Web Inspector: Search: there should be some default content when there is no search string
https://bugs.webkit.org/show_bug.cgi?id=204631
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.css (253166 => 253167)
--- trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.css 2019-12-05 20:35:24 UTC (rev 253166)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.css 2019-12-05 21:03:17 UTC (rev 253167)
@@ -24,19 +24,9 @@
*/
.sidebar > .panel.details.css-style > .content {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- overflow-y: auto;
- overflow-x: hidden;
+ position: relative;
}
-.sidebar > .panel.details.css-style > .content.has-filter-bar {
- bottom: calc(var(--navigation-bar-height) - 1px);
-}
-
.sidebar > .panel.details.css-style > .content > .pseudo-classes {
padding: 6px 10px;
border-bottom: 1px solid var(--border-color);
@@ -65,8 +55,8 @@
.sidebar > .panel.details.css-style > .content ~ :matches(.options-container, .class-list-container) {
display: flex;
+ flex-shrink: 0;
align-items: center;
- position: absolute;
/* Make sure options and class containers are above details section headers, but below popovers. */
z-index: calc(var(--z-index-header) + 1);
width: 100%;
@@ -74,7 +64,6 @@
}
.sidebar > .panel.details.css-style > .content ~ .options-container {
- bottom: 0;
height: calc(var(--console-prompt-min-height) - 1px);
padding-top: 1px;
}
@@ -146,7 +135,6 @@
.sidebar > .panel.details.css-style > .content ~ .class-list-container {
flex-wrap: wrap;
- bottom: calc(var(--console-prompt-min-height) - 1px);
max-height: 75px;
padding: 3px 2px;
background-color: var(--panel-background-color);
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.js (253166 => 253167)
--- trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.js 2019-12-05 20:35:24 UTC (rev 253166)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.js 2019-12-05 21:03:17 UTC (rev 253167)
@@ -155,6 +155,19 @@
this._showPanel(this._panel);
+ this._classListContainer = this.element.createChild("div", "class-list-container");
+ this._classListContainer.hidden = true;
+
+ this._addClassContainer = this._classListContainer.createChild("div", "new-class");
+ this._addClassContainer.title = WI.UIString("Add a Class");
+ this._addClassContainer.addEventListener("click", this._addClassContainerClicked.bind(this));
+
+ this._addClassInput = this._addClassContainer.createChild("input", "class-name-input");
+ this._addClassInput.spellcheck = false;
+ this._addClassInput.setAttribute("placeholder", WI.UIString("Add New Class"));
+ this._addClassInput.addEventListener("keypress", this._addClassInputKeyPressed.bind(this));
+ this._addClassInput.addEventListener("blur", this._addClassInputBlur.bind(this));
+
let optionsContainer = this.element.createChild("div", "options-container");
let newRuleButton = optionsContainer.createChild("img", "new-rule");
@@ -172,19 +185,6 @@
this._classToggleButton.title = WI.UIString("Toggle Classes");
this._classToggleButton.addEventListener("click", this._classToggleButtonClicked.bind(this));
- this._classListContainer = this.element.createChild("div", "class-list-container");
- this._classListContainer.hidden = true;
-
- this._addClassContainer = this._classListContainer.createChild("div", "new-class");
- this._addClassContainer.title = WI.UIString("Add a Class");
- this._addClassContainer.addEventListener("click", this._addClassContainerClicked.bind(this));
-
- this._addClassInput = this._addClassContainer.createChild("input", "class-name-input");
- this._addClassInput.spellcheck = false;
- this._addClassInput.setAttribute("placeholder", WI.UIString("Add New Class"));
- this._addClassInput.addEventListener("keypress", this._addClassInputKeyPressed.bind(this));
- this._addClassInput.addEventListener("blur", this._addClassInputBlur.bind(this));
-
WI.cssManager.addEventListener(WI.CSSManager.Event.StyleSheetAdded, this._styleSheetAddedOrRemoved, this);
WI.cssManager.addEventListener(WI.CSSManager.Event.StyleSheetRemoved, this._styleSheetAddedOrRemoved, this);
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/Sidebar.css (253166 => 253167)
--- trunk/Source/WebInspectorUI/UserInterface/Views/Sidebar.css 2019-12-05 20:35:24 UTC (rev 253166)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/Sidebar.css 2019-12-05 21:03:17 UTC (rev 253167)
@@ -43,14 +43,13 @@
}
.sidebar > .panel {
+ display: flex;
+ flex-direction: column;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
-
- display: none;
-
overflow: hidden;
}
@@ -58,10 +57,6 @@
top: var(--navigation-bar-height);
}
-.sidebar > .panel.selected {
- display: block;
-}
-
body[dir=ltr] .sidebar.right > .resizer,
body[dir=rtl] .sidebar.left > .resizer {
left: -3px;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes