Skip to content

Commit

Permalink
fix: skeleton row 设置为 1 时, 宽度只能固定为70% (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-My authored Aug 17, 2023
1 parent 5c76945 commit 37476b5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/packages/skeleton/skeleton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
background: $skeleton-background;
margin-top: 10px;
border-radius: $skeleton-line-border-radius;

&:last-child {
width: 70%;
}
}

&-line {
Expand All @@ -37,6 +33,9 @@
height: $skeleton-line-height;
background: $skeleton-background;
}
.nut-skeleton__block:last-child {
width: 70%;
}
}
}

Expand Down

0 comments on commit 37476b5

Please sign in to comment.