Skip to content

Commit 2958176

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
Fix left side paddings for menus without checkmarks
Screenshot: https://imgur.com/a/Jvm60bv Bug: 325442935 Change-Id: I25258d5cf6b5805eac0d62575440426514224e03 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6249245 Commit-Queue: Kim-Anh Tran <[email protected]> Auto-Submit: Kateryna Prokopenko <[email protected]> Reviewed-by: Kim-Anh Tran <[email protected]>
1 parent 29d9f2e commit 2958176

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

front_end/panels/protocol_monitor/JSONEditor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ export class JSONEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
901901
${repeat(this.targets, target => {
902902
return html`
903903
<devtools-menu-item
904+
class="no-checkmark"
904905
.value=${target.id()}>
905906
${this.#computeTargetLabel(target)}
906907
</devtools-menu-item>

front_end/ui/components/menus/menuItem.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
outline: none;
1818
}
1919

20+
:host(.no-checkmark) .menu-item {
21+
padding-left: 0;
22+
}
23+
2024
:host(:not(:first-child)) .menu-item {
2125
border-top: var(--override-divider-line);
2226
}

0 commit comments

Comments
 (0)