⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248737 in webkit


Ignore:
Timestamp:
Aug 15, 2019, 12:18:43 PM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Sources: the "No Filter Results" message sits on top of all of the content, preventing any interaction
https://bugs.webkit.org/show_bug.cgi?id=200755

Reviewed by Joseph Pecoraro.

  • UserInterface/Views/SourcesNavigationSidebarPanel.js:

(WI.SourcesNavigationSidebarPanel):

  • UserInterface/Views/SourcesNavigationSidebarPanel.css:

(.sidebar > .panel.navigation.sources > .content > .resources-container): Added.
(@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > :matches(.call-stack-container, .breakpoints-container, .resources-container)): Added.
(@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > .call-stack-container):
(@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > .breakpoints-container):
(@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > .resources-container): Added.
(@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > :matches(.call-stack-container, .breakpoints-container, .resources)): Deleted.
(@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > .resources): Deleted.
Wrap the resources WI.TreeOutline in a <div> so the empty message placeholder that gets
inserted after it can be constrained to the size of the WI.TreeOutline.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r248735 r248737  
     12019-08-15  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Sources: the "No Filter Results" message sits on top of all of the content, preventing any interaction
     4        https://bugs.webkit.org/show_bug.cgi?id=200755
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * UserInterface/Views/SourcesNavigationSidebarPanel.js:
     9        (WI.SourcesNavigationSidebarPanel):
     10        * UserInterface/Views/SourcesNavigationSidebarPanel.css:
     11        (.sidebar > .panel.navigation.sources > .content > .resources-container): Added.
     12        (@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > :matches(.call-stack-container, .breakpoints-container, .resources-container)): Added.
     13        (@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > .call-stack-container):
     14        (@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > .breakpoints-container):
     15        (@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > .resources-container): Added.
     16        (@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > :matches(.call-stack-container, .breakpoints-container, .resources)): Deleted.
     17        (@media (min-height: 650px) .sidebar > .panel.navigation.sources > .content > .resources): Deleted.
     18        Wrap the resources `WI.TreeOutline` in a <div> so the empty message placeholder that gets
     19        inserted after it can be constrained to the size of the `WI.TreeOutline`.
     20
    1212019-08-15  Devin Rousso  <drousso@apple.com>
    222
  • trunk/Source/WebInspectorUI/UserInterface/Views/SourcesNavigationSidebarPanel.css

    r248735 r248737  
    9393}
    9494
     95.sidebar > .panel.navigation.sources > .content > .resources-container {
     96    position: relative;
     97}
     98
    9599.sidebar > .panel.navigation.sources > .content .tree-outline.single-thread {
    96100    -webkit-margin-start: -10px;
     
    112116    }
    113117
    114     .sidebar > .panel.navigation.sources > .content > :matches(.call-stack-container, .breakpoints-container, .resources) {
     118    .sidebar > .panel.navigation.sources > .content > :matches(.call-stack-container, .breakpoints-container, .resources-container) {
    115119        height: 100%;
    116         max-height: fit-content;
    117120        overflow-y: auto;
    118121    }
     
    121124        flex-grow: 3;
    122125        flex-shrink: 2;
     126        max-height: fit-content;
    123127    }
    124128
     
    126130        flex-grow: 2;
    127131        flex-shrink: 3;
     132        max-height: fit-content;
    128133    }
    129134
    130     .sidebar > .panel.navigation.sources > .content > .resources {
     135    .sidebar > .panel.navigation.sources > .content > .resources-container {
    131136        flex-grow: 1;
    132137        flex-shrink: 3;
  • trunk/Source/WebInspectorUI/UserInterface/Views/SourcesNavigationSidebarPanel.js

    r248480 r248737  
    234234        this._resourcesNavigationBar.addNavigationItem(resourceGroupingModeNavigationItem);
    235235
     236        let resourcesContainer = document.createElement("div");
     237        resourcesContainer.classList.add("resources-container");
     238        this.contentView.element.insertBefore(resourcesContainer, this._resourcesNavigationBar.element.nextSibling);
     239
    236240        this._resourcesTreeOutline = this.contentTreeOutline;
    237         this._resourcesTreeOutline.element.classList.add("resources");
    238241        this._resourcesTreeOutline.addEventListener(WI.TreeOutline.Event.SelectionDidChange, this._handleTreeSelectionDidChange, this);
    239242        this._resourcesTreeOutline.includeSourceMapResourceChildren = true;
    240         this.contentView.element.insertBefore(this._resourcesTreeOutline.element, this._resourcesNavigationBar.element.nextSibling);
     243        resourcesContainer.appendChild(this._resourcesTreeOutline.element);
    241244
    242245        let onlyShowResourcesWithIssuesFilterFunction = (treeElement) => {
Note: See TracChangeset for help on using the changeset viewer.