Skip to content

Commit 7054859

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
[GM3Restyling] Use tokens for outline views update
Bug: 325443114 Change-Id: I82da08d090bf2a00ba041f220ce323363a78264a Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6218360 Auto-Submit: Kateryna Prokopenko <[email protected]> Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Kateryna Prokopenko <[email protected]>
1 parent df1f459 commit 7054859

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

front_end/panels/elements/elementsTreeOutline.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
content: "\A0\A0";
123123
color: transparent;
124124
text-shadow: none;
125-
margin: -3px 2px 0 -3px;
125+
margin: -3px var(--sys-size-2) 0 -3px;
126126
background-color: var(--icon-default);
127127
}
128128

front_end/panels/sources/SourcesPanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ export class SourcesPanel extends UI.Panel.Panel implements
11901190
vbox.setMinimumAndPreferredSizes(minToolbarWidth, 25, minToolbarWidth, 100);
11911191
this.sidebarPaneStack = UI.ViewManager.ViewManager.instance().createStackLocation(
11921192
this.revealDebuggerSidebar.bind(this), undefined, 'debug');
1193-
this.sidebarPaneStack.widget().element.classList.add('overflow-y-auto');
1193+
this.sidebarPaneStack.widget().element.classList.add('y-overflow-only');
11941194
this.sidebarPaneStack.widget().show(vbox.element);
11951195
this.sidebarPaneStack.widget().element.appendChild(this.debuggerPausedMessage.element());
11961196
this.sidebarPaneStack.appendApplicableItems('sources.sidebar-top');

front_end/panels/sources/components/breakpointsView.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ details > summary::before {
6262
mask-image: var(--image-file-arrow-collapse);
6363
background-color: var(--icon-default);
6464
content: "";
65-
height: 16px;
66-
min-width: 16px;
67-
max-width: 16px;
68-
margin-top: -2px;
69-
margin-left: -4px;
65+
height: var(--sys-size-8);
66+
min-width: var(--sys-size-8);
67+
max-width: var(--sys-size-8);
68+
margin-top: calc(-1 * var(--sys-size-2));
69+
margin-left: calc(-1 * var(--sys-size-3));
7070
overflow: hidden;
7171
}
7272

front_end/panels/sources/sourcesPanel.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
display: flex;
6767
}
6868

69+
.y-overflow-only {
70+
overflow: hidden auto;
71+
background-color: var(--sys-color-cdt-base-container);
72+
}
73+
6974
.cursor-auto {
7075
cursor: auto;
7176
}

front_end/ui/legacy/inspectorCommon.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ iframe.fill {
196196
background-color: var(--sys-color-cdt-base-container);
197197
}
198198

199-
.overflow-y-auto {
200-
overflow: hidden auto;
201-
background-color: var(--sys-color-cdt-base-container);
202-
}
203-
204199
iframe.widget {
205200
position: absolute;
206201
width: 100%;

front_end/ui/legacy/treeoutline.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus {
118118
background-color: var(--icon-default);
119119
content: "\A0\A0";
120120
text-shadow: none;
121-
margin-top: -2px;
122-
height: 16px;
123-
width: 16px;
121+
margin-top: calc(-1 * var(--sys-size-2));
122+
height: var(--sys-size-8);
123+
width: var(--sys-size-8);
124124
}
125125

126126
.tree-outline li:not(.parent)::before {

0 commit comments

Comments
 (0)