Skip to content

Commit

Permalink
fix(cc-kv-string-editor): remove padding around component
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesoyres-cc committed Nov 26, 2024
1 parent 3370a49 commit cde5880
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 9 additions & 1 deletion src/components/cc-kv-explorer/cc-kv-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,11 @@ export class CcKvExplorer extends LitElement {
* @return {TemplateResult}
*/
_renderEditString(state, disabled) {
return html`<cc-kv-string-editor-beta .state=${state} ?disabled=${disabled}></cc-kv-string-editor-beta>`;
return html`<cc-kv-string-editor-beta
class="string-editor"
.state=${state}
?disabled=${disabled}
></cc-kv-string-editor-beta>`;
}

/**
Expand Down Expand Up @@ -1087,6 +1091,10 @@ export class CcKvExplorer extends LitElement {
white-space: nowrap;
}
.string-editor {
margin: 1em;
}
.buttons {
border-top: 1px solid var(--cc-color-border-neutral);
display: flex;
Expand Down
4 changes: 0 additions & 4 deletions src/components/cc-kv-string-editor/cc-kv-string-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ export class CcKvStringEditor extends LitElement {
display: block;
}
form {
padding: 1em;
}
.buttons {
display: flex;
gap: 0.5em;
Expand Down

0 comments on commit cde5880

Please sign in to comment.