Skip to content

Commit 4bff5d5

Browse files
committed
[FIX]: 로딩 오류 수정
1 parent 4cad0c2 commit 4bff5d5

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

client/src/components/LeaderBoard.jsx

+12-10
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,7 @@ export default function LeaderBoard({ daynight }) {
8383
);
8484
})}
8585
{loading && (
86-
<li
87-
style={{
88-
display: "flex",
89-
justifyContent: "center",
90-
objectFit: "cover",
91-
height: "25px",
92-
}}
93-
>
86+
<li>
9487
<ul>
9588
{[...Array(loading && items.length == 0 ? 14 : 3)].map(
9689
(_, index) => (
@@ -109,8 +102,17 @@ export default function LeaderBoard({ daynight }) {
109102
)
110103
)}
111104
</ul>
112-
113-
<img alt="loading..." src={"img/loading.gif"} />
105+
<div
106+
style={{
107+
display: "flex",
108+
justifyContent: "center",
109+
objectFit: "cover",
110+
height: "25px",
111+
}}
112+
>
113+
{" "}
114+
<img alt="loading..." src={"img/loading.gif"} />
115+
</div>
114116
</li>
115117
)}
116118
</ul>

0 commit comments

Comments
 (0)