Skip to content

Commit

Permalink
spinner center
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshiel committed Oct 15, 2024
1 parent 3a4ba55 commit 347a60f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/components/video-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function VideoPanel(): JSX.Element {
key={`${id}-${i}`}
style={{ display: "inline-block", position: "relative" }}
>
<LoadingSpinner mentor={id} />
<div
style={{ position: "absolute", right: 0, top: 5, zIndex: 2 }}
>
Expand All @@ -102,7 +103,6 @@ function VideoPanel(): JSX.Element {
onClick={() => onClick(id)}
>
<VideoThumbnail mentor={id} />
<LoadingSpinner mentor={id} />
<MessageStatus mentor={id} />
</button>
</div>
Expand Down
6 changes: 3 additions & 3 deletions client/src/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ body {

.spinner {
position: absolute;
left: 50%;
bottom: 15px;
transform: translateX(-50%);
top: 25%;
left: 25%;
transform: translate(-50%, -50%);
}

.message-notice {
Expand Down

0 comments on commit 347a60f

Please sign in to comment.