Improve admin

This commit is contained in:
Adrian Woźniak 2022-08-01 12:00:18 +02:00
parent 670c1f7cf2
commit a9d223d976
No known key found for this signature in database
GPG Key ID: 0012845A89C7352B
2 changed files with 19 additions and 3 deletions

View File

@ -8,7 +8,14 @@ customElements.define('admin-edit-business', class extends Component {
constructor() {
super(`
<style>
:host { display: block; }
:host {
display: block;
border-bottom: 2px solid var(--border-slim-color);
padding: 8px 0;
}
:host(:first-child) {
border-top: 2px solid var(--border-slim-color);
}
section {
display: flex;
justify-content: space-between;
@ -19,11 +26,17 @@ customElements.define('admin-edit-business', class extends Component {
#actions > input:not(:last-child) {
margin-right: .5rem;
}
#actions > input {
margin-bottom: 8px;
width: 100%;
}
#actions select {
width: 100%;
}
::slotted(admin-business) {
width: 100%;
}
${ BUTTON_STYLE }
${ INPUT_STYLE }
${ BUTTON_STYLE }${ INPUT_STYLE }
</style>
<section>
<slot></slot>

View File

@ -10,6 +10,8 @@ customElements.define('admin-edit-offer', class extends Component {
<style>
:host {
display: block;
border-bottom: 2px solid var(--border-slim-color);
padding: 8px 0;
}
#view { display: block; }
#actions form {
@ -17,6 +19,7 @@ customElements.define('admin-edit-offer', class extends Component {
}
#actions form input {
width: 100%;
margin-bottom: 8px;
}
#state {
font-weight: bold;