Skip to content

Commit

Permalink
refactor: host as container
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Oct 2, 2023
1 parent d146a0f commit cc016b3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/bytemd/src/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ export class Toolbar extends LitElement {
...rightAfferentActions,
]

return html`<div class="toolbar" @click=${() => {}} @keydown=${() => {}}>
${split
return html`${split
? actions.map(
(item, index) =>
item.handler &&
Expand Down Expand Up @@ -177,16 +176,15 @@ export class Toolbar extends LitElement {
${unsafeHTML(item.icon)}
</div>
`,
)}
</div>`
)}`
}

static styles = css`
* {
box-sizing: border-box;
}
.toolbar {
:host {
padding: 4px 12px;
border-bottom: 1px solid var(--border-color);
background-color: var(--gray-000);
Expand Down

0 comments on commit cc016b3

Please sign in to comment.