diff --git a/src/edit.ts b/src/edit.ts index e2446b0..14114a0 100644 --- a/src/edit.ts +++ b/src/edit.ts @@ -5,7 +5,7 @@ import { customElement } from 'lit/decorators.js'; export class LavenderConfigure extends LitElement { static override styles = [ css` - .centerit { + .centerit { text-align: center; } @@ -25,19 +25,31 @@ export class LavenderConfigure extends LitElement { } .widgets { - width: 100%; display: flex; - flex-direction: column; + flex-wrap: wrap; + flex-direction: row; } .widgets >* { + flex: 1 1 300px; + margin: .2em; + padding: .5em; + border: .1em solid black; + border-radius: .5em; + } + + .widget-edit { + display: flex; + flex-direction: row; + } + + .widget-edit >* { margin: .2em; padding: .5em; - width: 100%; } input { - width: 50%; + width: 100%; padding: .5em; border-radius: .5em; } @@ -88,16 +100,16 @@ export class LavenderConfigure extends LitElement { ${widgets.map((widget: any) => { return html`