Skip to content

Commit

Permalink
style update for sendmail test modal
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Jan 3, 2024
1 parent 6b1f795 commit 2b7b1fc
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions source/ui/screens/Admin/AdminHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,34 @@ class TestmailModalBody extends i18n(LitElement){

if(this.state =="initial"){
return html`<div style="width:300px;display:flex;justify-content:center">
<button @click=${onsend}>${this.t("ui.send")}</button>
<button class="send" @click=${onsend}>${this.t("ui.send")}</button>
</div>`
}else if(this.state === "sending"){
return html`<div style="flex-grow:1">
<progress style="width:100%"></progress>
</div>`
}else{
return html`<div>
<button @click=${onsend}>${this.t("ui.send")}</button>
<p>${this.state}</p>
return html`<div style="max-width: max(450px, 60vw);">
<button class="send" @click=${onsend}>${this.t("ui.send")}</button>
<pre class="state-report">${this.state}</pre>
</div>`;
}
}
static styles = css`
button.send{
box-sizing: border-box;
padding: 4px 10px;
border: none;
text-decoration: none;
color: white;
background-color: var(--color-primary);
}
.state-report{
text-wrap: wrap;
overflow: auto;
border: 1px solid var(--color-dark);
}
`;
}

/**
Expand Down

0 comments on commit 2b7b1fc

Please sign in to comment.