Skip to content

Commit ff90ca1

Browse files
committed
feat: center all items inside whether they be the figure, icon, or loader
1 parent afa2cde commit ff90ca1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/packages/media/imaging/components/imaging-thumbnail.element.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class UmbImagingThumbnailElement extends UmbLitElement {
9393
}
9494

9595
#renderLoading() {
96-
return html`<div class="container"><uui-loader></uui-loader></div>`;
96+
return html`<div id="loader"><uui-loader></uui-loader></div>`;
9797
}
9898

9999
#renderThumbnail() {
@@ -131,12 +131,19 @@ export class UmbImagingThumbnailElement extends UmbLitElement {
131131
display: block;
132132
position: relative;
133133
overflow: hidden;
134+
display: flex;
135+
justify-content: center;
136+
align-items: center;
137+
width: 100%;
138+
height: 100%;
134139
}
135140
136-
.container {
141+
#loader {
137142
display: flex;
138143
justify-content: center;
139144
align-items: center;
145+
height: 100%;
146+
width: 100%;
140147
}
141148
142149
#figure {

0 commit comments

Comments
 (0)