Skip to content

Commit ed141e3

Browse files
committed
fix Spinner margin across instances
1 parent c4fc3f4 commit ed141e3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/components/FindFace/FindFace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const FindFace = ({ imageUrl, onUserDataChange, user }) => {
180180
{'Download Image'}
181181
</button>
182182
{isDownloading && (
183-
<Spinner className="absolute -right-2 top-5 translate-x-full -translate-y-1/2" />
183+
<Spinner className="absolute -right-2 top-5 translate-x-full -translate-y-1/2 !m-0" />
184184
)}
185185
</div>
186186
<div className="relative">

src/components/Modal/Modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const Modal = ({ onClose }) => {
176176
Cancel
177177
</button>
178178
</div>
179-
{status === 'loading' && <Spinner />}
179+
{status === 'loading' && <Spinner/>}
180180
{(status === 'error' || status === 'success') && (
181181
<Alert message={message} onClose={() => setStatus('idle')} />
182182
)}

src/components/Spinner/Spinner.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
display: flex;
33
align-items: center;
44
justify-content: center;
5+
margin: 20px;
56
}
67
/* loader styles inside %PUBLIC_URL%/loader.css */

0 commit comments

Comments
 (0)