Skip to content

Commit 773da36

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
[GM3Restyling] Reduce default tooltip paddings
Fix shadow and remove arrow Margin behaviour as a drive-by Bug: 406466030 Change-Id: Iaaf6abde4f255e11d9056f89f1b8cfa448148805 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6425299 Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Kim-Anh Tran <[email protected]> Auto-Submit: Kateryna Prokopenko <[email protected]>
1 parent 27ef610 commit 773da36

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

front_end/panels/timeline/timelineFlameChartView.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@
136136
contain: content;
137137
background-color: var(--sys-color-cdt-base-container);
138138
pointer-events: none;
139-
padding: var(--sys-size-6) var(--sys-size-8);
139+
padding: var(--sys-size-4);
140140
border-radius: var(--sys-shape-corner-small);
141141
white-space: nowrap;
142142
max-width: 80%;
143-
box-shadow: var(--drop-shadow);
143+
box-shadow: var(--sys-elevation-level2);
144144
}
145145

146146
.overlay-type-TIMESPAN_BREAKDOWN {

front_end/ui/legacy/GlassPane.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ export const enum SizeBehavior {
329329
}
330330

331331
export const enum MarginBehavior {
332-
ARROW = 'Arrow',
333332
DEFAULT_MARGIN = 'DefaultMargin',
334333
NO_MARGIN = 'NoMargin',
335334
}

front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export class OverviewInfo {
524524
this.anchorElement = anchor;
525525
this.glassPane = new UI.GlassPane.GlassPane();
526526
this.glassPane.setPointerEventsBehavior(UI.GlassPane.PointerEventsBehavior.PIERCE_CONTENTS);
527-
this.glassPane.setMarginBehavior(UI.GlassPane.MarginBehavior.ARROW);
527+
this.glassPane.setMarginBehavior(UI.GlassPane.MarginBehavior.DEFAULT_MARGIN);
528528
this.glassPane.setSizeBehavior(UI.GlassPane.SizeBehavior.MEASURE_CONTENT);
529529
this.visible = false;
530530
this.element =

front_end/ui/legacy/components/perf_ui/timelineOverviewInfo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
display: flex;
99
background: var(--sys-color-cdt-base-container);
1010
box-shadow: var(--sys-elevation-level2);
11-
padding: var(--sys-size-6) var(--sys-size-8);
11+
padding: var(--sys-size-4);
1212
border-radius: var(--sys-shape-corner-small);
1313
}
1414

0 commit comments

Comments
 (0)