Skip to content

Commit 0db9d0d

Browse files
committed
fix: line hight alighment
When using `display: inline-block` + `overflow: hidden`, aligns the bottom of the content box to the base-line. This "weird" behavior doesn't happen when using `display: inline-flex`.
1 parent a5221b8 commit 0db9d0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/skeleton.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
width: 100%;
1515
border-radius: 0.25rem;
16-
display: inline-block;
16+
display: inline-flex;
1717
line-height: 1;
1818

1919
position: relative;
2020
overflow: hidden;
2121
}
2222

23-
.react-loading-skeleton::before {
23+
.react-loading-skeleton::after {
2424
content: ' ';
2525
display: block;
2626
position: absolute;

0 commit comments

Comments
 (0)