fix: next warning

This commit is contained in:
QiShaoXuan
2022-10-31 17:08:01 +08:00
parent 795cd8e98f
commit 0baaf5aed8
2 changed files with 5 additions and 5 deletions

View File

@@ -64,28 +64,28 @@ export const StyledLoadingItem = styled.div`
right: 50%;
}
&:nth-child(1) {
&:nth-of-type(1) {
--sx: 50%;
--sy: -50%;
--ex: 150%;
--ey: 50%;
}
&:nth-child(2) {
&:nth-of-type(2) {
--sx: -50%;
--sy: -50%;
--ex: 50%;
--ey: -50%;
}
&:nth-child(3) {
&:nth-of-type(3) {
--sx: 150%;
--sy: 50%;
--ex: 50%;
--ey: 50%;
}
&:nth-child(4) {
&:nth-of-type(4) {
--sx: 50%;
--sy: 50%;
--ex: -50%;