You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-7
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,10 @@
13
13
<img src="https://media.giphy.com/media/l0Iyk4bAAjac3AU2k/giphy.gif" alt="Gif of the skeleton in action">
14
14
</div>
15
15
16
-
Learn about the [changes in version 3](https://github.com/dvtng/react-loading-skeleton/releases/tag/v3.0.0), or view the [v2 documentation](https://github.com/dvtng/react-loading-skeleton/tree/v2#readme).
16
+
Learn about the [changes in version
17
+
3](https://github.com/dvtng/react-loading-skeleton/releases/tag/v3.0.0), or view
### The height of my container is off by a few pixels!
264
272
265
-
In the example below, the height of the `<div>` will be slightly larger than 30 even though the `react-loading-skeleton` element is exactly 30px.
273
+
In the example below, the height of the `<div>` will be slightly larger than 30
274
+
even though the `react-loading-skeleton` element is exactly 30px.
266
275
267
276
```tsx
268
277
<div>
269
278
<Skeletonheight={30} />
270
279
</div>
271
280
```
272
281
273
-
This is a consequence of how `line-height` works in CSS. If you need the `<div>` to be exactly 30px tall, set its `line-height` to 1. [See here](https://github.com/dvtng/react-loading-skeleton/issues/23#issuecomment-939231878) for more details.
282
+
This is a consequence of how `line-height` works in CSS. If you need the `<div>`
283
+
to be exactly 30px tall, set its `line-height` to 1. [See
0 commit comments