Unverified Commit ac966131 authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

Merge pull request #2300 from ethereum/LianaHus-patch-5

removed the parent margins of loader
parents 276e8712 5ffbade3
......@@ -23,11 +23,6 @@ const css = csjs`
height : 100%;
overflow-y : hidden;
}
.loading {
height : 40px !important;
width : 40px !important;
margin : auto !important;
}
`
/** Abstract class used for hosting the view of a plugin */
......@@ -56,7 +51,13 @@ export class AbstractPanel extends HostPlugin {
const isIframe = view.tagName === 'IFRAME'
view.style.display = isIframe ? 'none' : 'block'
const loading = isIframe ? yo`<div class="spinner-border ${css.loading} text-primary" role="status"><div class="sr-only">Loading...</div></div>` : ''
const loading = isIframe ? yo`
<div class="d-flex justify-content-center align-items-center">
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
` : ''
this.contents[name] = yo`<div class="${css.plugItIn}" >${view}${loading}</div>`
if (view.tagName === 'IFRAME') {
......
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