Commit 29383301 authored by JC Brand's avatar JC Brand

CSS: Fix horizontally centered spinner

parent a6c821be
...@@ -498,6 +498,7 @@ body.converse-fullscreen { ...@@ -498,6 +498,7 @@ body.converse-fullscreen {
margin: auto; margin: auto;
} }
.hor_centered { .hor_centered {
width: 100%;
text-align: center; text-align: center;
display: block; display: block;
margin: 0 auto; margin: 0 auto;
......
...@@ -76,6 +76,6 @@ export default (o) => html` ...@@ -76,6 +76,6 @@ export default (o) => html`
<p class="feedback-subject">${ o.conn_feedback_subject }</p> <p class="feedback-subject">${ o.conn_feedback_subject }</p>
<p class="feedback-message ${ !o.conn_feedback_message ? 'hidden' : '' }">${o.conn_feedback_message}</p> <p class="feedback-message ${ !o.conn_feedback_message ? 'hidden' : '' }">${o.conn_feedback_message}</p>
</div> </div>
${ (o._converse.CONNECTION_STATUS[o.connection_status] === 'CONNECTING') ? tpl_spinner() : form_fields(o) } ${ (o._converse.CONNECTION_STATUS[o.connection_status] === 'CONNECTING') ? tpl_spinner({'classes': 'hor_centered'}) : form_fields(o) }
</form> </form>
`; `;
import { html } from "lit-html"; import { html } from "lit-html";
export default () => html`<span class="spinner fa fa-spinner centered"/>` export default (o) => html`<span class="spinner fa fa-spinner centered ${o.classes || ''}"/>`
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment