Skip to content

Commit

Permalink
fix spinner css
Browse files Browse the repository at this point in the history
  • Loading branch information
DerouineauNicolas committed Mar 21, 2024
1 parent 3f0a60a commit 499a6a5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
14 changes: 14 additions & 0 deletions frontend/src/components/Carousels/SampleNextArrow.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@
opacity: 0.5;
}
.next { left: 25px; }
.next-spinner-hidden {
display: none;
}
.back { right: 25px; }

.next-spinner-wheel {
position: absolute;
line-height: 100%;
font-size: 123px;
top: 18%;
z-index: 2;
opacity: 1;
right: 25px;
}


.arrow:hover {
opacity: 1;
cursor: pointer;
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/components/Carousels/SampleNextArrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const SampleNextArrow = (props) => {
const { className, style, onClick } = props;
const isLoading = props.isloading;

if (isLoading) {
return (
<label ><CircularProgress /></label>
)
} else {
return (
<label className="">
<div className={isLoading ? "next-spinner-wheel" : "next-spinner-hidden"}>
<CircularProgress/>
</div>
<div className="arrow back" onClick={onClick}></div>
</label>
);

return (
<label className="arrow back" onClick={onClick}></label>
);
}

};
export default SampleNextArrow;

0 comments on commit 499a6a5

Please sign in to comment.