Skip to content

Commit 45ce589

Browse files
committed
Remove unneeded dimensions settings
1 parent 9b4764e commit 45ce589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

image-embeds.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ To link an image, for example to create a button on your docs, encompass the ima
5757
To use separate images for light and dark mode, use Tailwind CSS to hide and show images.
5858

5959
```html
60-
<img className="block w-52 dark:hidden" src="/path/image-light.jpg" />
61-
<img className="hidden w-52 dark:block" src="/path/image-dark.jpg" />
60+
<img className="block dark:hidden" src="/path/image-light.jpg" />
61+
<img className="hidden dark:block" src="/path/image-dark.jpg" />
6262
```
6363

6464
### Related

0 commit comments

Comments
 (0)