Skip to content

Commit 0600268

Browse files
authored
Fix object-none example in docs (#2089)
The doc about the `object-fit` property seems to display a wrong example of the `object-none` class. The example image seems to be stretched instead of being displayed at its original size. # Example ![Screenshot 2025-02-15 at 00 03 39](https://github.com/user-attachments/assets/4aaf52d3-ee3b-434f-8468-536ab1a79c6b) # Original image ![Screenshot 2025-02-15 at 00 04 00](https://github.com/user-attachments/assets/c615b8fe-d167-418e-9bbb-0238c8f8941b)
1 parent 0a1ce34 commit 0600268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/object-fit.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Use the `object-none` utility to display an element's content at its original si
122122
<Example>
123123
{
124124
<img
125-
className="mx-auto h-48 w-96 rounded-lg"
125+
className="mx-auto h-48 w-96 rounded-lg object-none"
126126
src="https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90"
127127
/>
128128
}

0 commit comments

Comments
 (0)