Skip to content

Commit 4a53cbe

Browse files
author
Kateryna Prokopenko
committed
[M136] Fix paddings and corner radii for flex, grid and shadow editors
Bug: 409771454 Change-Id: I19e9840d78ee245c1a15b5d8e65485eb227d4aa1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6459230 Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Kateryna Prokopenko <[email protected]> Auto-Submit: Kateryna Prokopenko <[email protected]> Commit-Queue: Kim-Anh Tran <[email protected]> (cherry picked from commit 199588f) Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6513135
1 parent e793e21 commit 4a53cbe

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

front_end/panels/elements/ColorSwatchPopoverIcon.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ export class ShadowSwatchPopoverHelper extends Common.ObjectWrapper.ObjectWrappe
342342
}
343343

344344
this.cssShadowEditor = new InlineEditor.CSSShadowEditor.CSSShadowEditor();
345+
this.cssShadowEditor.element.classList.toggle('with-padding', true);
345346
this.cssShadowEditor.setModel(this.shadowSwatch.model());
346347
this.cssShadowEditor.addEventListener(InlineEditor.CSSShadowEditor.Events.SHADOW_CHANGED, this.boundShadowChanged);
347348
this.swatchPopoverHelper.show(this.cssShadowEditor, this.iconElement, this.onPopoverHidden.bind(this));

front_end/panels/elements/StyleEditorWidget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export class StyleEditorWidget extends UI.Widget.VBox {
125125
event.stopPropagation();
126126
const popoverHelper = pane.swatchPopoverHelper();
127127
const widget = StyleEditorWidget.instance();
128+
widget.element.classList.toggle('with-padding', true);
128129
widget.setEditor(editorClass);
129130
widget.bindContext(pane, section);
130131
widget.setTriggerKey(triggerKey);

front_end/ui/legacy/components/inline_editor/swatchPopover.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@
1414
background-color: var(--sys-color-base-container-elevated);
1515
border-radius: var(--sys-shape-corner-extra-small);
1616
}
17+
18+
.with-padding {
19+
padding: var(--sys-size-4);
20+
border-radius: var(--sys-shape-corner-small);
21+
}

0 commit comments

Comments
 (0)