Changeset 204518 in webkit


Ignore:
Timestamp:
Aug 16, 2016 12:25:57 PM (8 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Data grid has a double left border when the first column is hidden
https://bugs.webkit.org/show_bug.cgi?id=160723
<rdar://problem/27778081>

Reviewed by Timothy Hatcher.

This patch exploits the fact hiding columns that aren't first in DataGrid don't create double
borders.

  • UserInterface/Views/DataGrid.css:

(.data-grid table.header,):
(.data-grid :matches(th, td):first-child):
(@media (-webkit-min-device-pixel-ratio: 2)):

  • UserInterface/Views/SourceCodeTextEditor.js:

(WebInspector.SourceCodeTextEditor.prototype._setTypeTokenAnnotatorEnabledState):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r204513 r204518  
     12016-08-16  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Data grid has a double left border when the first column is hidden
     4        https://bugs.webkit.org/show_bug.cgi?id=160723
     5        <rdar://problem/27778081>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        This patch exploits the fact hiding columns that aren't first in DataGrid don't create double
     10        borders.
     11
     12        * UserInterface/Views/DataGrid.css:
     13        (.data-grid table.header,):
     14        (.data-grid :matches(th, td):first-child):
     15        (@media (-webkit-min-device-pixel-ratio: 2)):
     16        * UserInterface/Views/SourceCodeTextEditor.js:
     17        (WebInspector.SourceCodeTextEditor.prototype._setTypeTokenAnnotatorEnabledState):
     18
    1192016-08-16  Joseph Pecoraro  <pecoraro@apple.com>
    220
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.css

    r201540 r204518  
    332332    transform: translateX(-2.5px);
    333333}
     334
     335.data-grid table.header,
     336.data-grid table.data {
     337    /* Hide right border from first hidden columns. */
     338    width: calc(100% + 1px);
     339    margin-left: -1px;
     340}
     341
     342.data-grid :matches(th, td):first-child {
     343    border-left: 1px solid transparent;
     344}
     345
     346@media (-webkit-min-device-pixel-ratio: 2) {
     347    .data-grid table.header,
     348    .data-grid table.data {
     349        width: calc(100% + 0.5px);
     350        margin-left: -0.5px;
     351    }
     352
     353    .data-grid :matches(th, td):first-child {
     354        border-width: 0.5px;
     355    }
     356}
Note: See TracChangeset for help on using the changeset viewer.