feat: center all items inside whether they be the figure, icon, or loader

This commit is contained in:
Jacob Overgaard
2024-07-10 11:33:07 +02:00
parent 46f1b237f6
commit e221b8f54f

View File

@@ -93,7 +93,7 @@ export class UmbImagingThumbnailElement extends UmbLitElement {
}
#renderLoading() {
return html`<div class="container"><uui-loader></uui-loader></div>`;
return html`<div id="loader"><uui-loader></uui-loader></div>`;
}
#renderThumbnail() {
@@ -131,12 +131,19 @@ export class UmbImagingThumbnailElement extends UmbLitElement {
display: block;
position: relative;
overflow: hidden;
}
.container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
#loader {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
#figure {