Skip to content
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

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

BlackySoul
Copy link
Contributor

  • Документация фичи

Описание

Сейчас keepAspectRatio у Image требует явного задания ширины/высоты родителя, потому что непосредственно сама картинка имеет position: absolute (соответственно, без явных указаний размеров картинка будет схлапываться или переполнять родительский контейнер). Также есть проблемы с обводкой - она не растягивается на размерам картинки.

Изменения

Убираем position: absolute у img

@BlackySoul BlackySoul self-assigned this Aug 8, 2024
@BlackySoul BlackySoul requested a review from a team as a code owner August 8, 2024 11:52
@BlackySoul BlackySoul added this to the v6.5.1 milestone Aug 8, 2024
Copy link
Contributor

github-actions bot commented Aug 8, 2024

size-limit report 📦

Path Size
JS 378.06 KB (0%)
JS (gzip) 114.65 KB (0%)
JS (brotli) 94.19 KB (0%)
JS import Div (tree shaking) 1.39 KB (0%)
CSS 305.56 KB (-0.04% 🔽)
CSS (gzip) 39.21 KB (-0.05% 🔽)
CSS (brotli) 31.45 KB (-0.12% 🔽)

Copy link

codesandbox-ci bot commented Aug 8, 2024

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.

Copy link
Contributor

github-actions bot commented Aug 8, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Aug 8, 2024

👀 Docs deployed

Commit 64f2991

Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.54%. Comparing base (8a03648) to head (64f2991).
Report is 32 commits behind head on master.

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     
Flag Coverage Δ
unittests 92.54% <ø> (+3.78%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

mendrew
mendrew previously approved these changes Aug 8, 2024
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ух ты, и ничего не сломалось и не поехало
👏 👍

inomdzhon
inomdzhon previously approved these changes Aug 9, 2024
@BlackySoul BlackySoul dismissed stale reviews from inomdzhon and mendrew via 64f2991 August 12, 2024 07:37
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💅

@BlackySoul BlackySoul merged commit 10d533c into master Aug 19, 2024
27 checks passed
@BlackySoul BlackySoul deleted the blackysoul/fix_image_adaptivity branch August 19, 2024 10:00
BlackySoul added a commit that referenced this pull request Aug 20, 2024
* feat(ImageBase): remove position: absolute & add docs example with keepAspectRatio

* fix: remove useless internal variable
@BlackySoul BlackySoul mentioned this pull request Aug 20, 2024
BlackySoul added a commit that referenced this pull request Aug 20, 2024
…) (#7407)

* feat(ImageBase): remove position: absolute & add docs example with keepAspectRatio

* fix: remove useless internal variable
@vkcom-publisher
Copy link
Contributor

v6.5.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants