-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ImageBase): remove position: absolute & update docs example #7342
Conversation
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
e2e tests |
👀 Docs deployed
Commit 64f2991 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7342 +/- ##
==========================================
+ Coverage 88.75% 92.54% +3.78%
==========================================
Files 374 374
Lines 11108 11118 +10
Branches 3640 3646 +6
==========================================
+ Hits 9859 10289 +430
+ Misses 1249 829 -420
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ух ты, и ничего не сломалось и не поехало
👏 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅
* feat(ImageBase): remove position: absolute & add docs example with keepAspectRatio * fix: remove useless internal variable
…) (#7407) * feat(ImageBase): remove position: absolute & add docs example with keepAspectRatio * fix: remove useless internal variable
✅ v6.5.1 🎉 |
Описание
Сейчас
keepAspectRatio
уImage
требует явного задания ширины/высоты родителя, потому что непосредственно сама картинка имеетposition: absolute
(соответственно, без явных указаний размеров картинка будет схлапываться или переполнять родительский контейнер). Также есть проблемы с обводкой - она не растягивается на размерам картинки.Изменения
Убираем
position: absolute
уimg