diff --git a/src/button-bar/AtomButtonBar.tsx b/src/button-bar/AtomButtonBar.tsx index f8eae61a..76840b76 100644 --- a/src/button-bar/AtomButtonBar.tsx +++ b/src/button-bar/AtomButtonBar.tsx @@ -2,31 +2,7 @@ import styled from "@web-atoms/core/dist/style/styled"; import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl"; import { AtomItemsControl } from "@web-atoms/core/dist/web/controls/AtomItemsControl"; - styled.css ` - display: inline-flex; - gap: 0; - align-items: center; - border: solid 1px lightblue; - border-radius: 10px; - padding-left: 10px; - padding-right: 10px; - & > * { - border-radius: 10px; - padding: 5px; - cursor: pointer; - &:first-child { - border-top-right-radius: 0; - border-bottom-right-radius:0; - } - &:last-child { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - } - &[data-item=selected-item] { - background-color: lightblue; - } - } -`.installGlobal("*[data-button-bar=button-bar]"); +import "../styles/button-bar.global.less"; export default class AtomButtonBar extends AtomItemsControl { diff --git a/src/html-editor/commands/Source.tsx b/src/html-editor/commands/Source.tsx index 0f1ef4f4..544a790d 100644 --- a/src/html-editor/commands/Source.tsx +++ b/src/html-editor/commands/Source.tsx @@ -24,7 +24,8 @@ async function showDialog(s: AtomHtmlEditor, e: Event): Promise { protected create(): void { this.source = s.htmlContent; this.render(
-