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

fix(PullToRefresh): Stretch PullToRefresh horizontally #6613

Merged
merged 6 commits into from
Feb 28, 2024

Conversation

mendrew
Copy link
Contributor

@mendrew mendrew commented Feb 22, 2024

  • Unit-тесты
  • e2e-тесты
  • Дизайн-ревью
  • Документация фичи

Описание

Растягиваем PullToRefresh по высоте, чтобы контент мог занимать всю высоту панели.
Одна из проблем была с Placeholder в режиме stretched, который переставал выравниваться по центру, если был обернут в PullToRefresh. Без жесткого кастома нельзя отцентрировать по вертикали Placeholder stretched при наличии PullToRefresh
Пример где PullToRefresh ломал поведение Placeholder https://codesandbox.io/p/sandbox/bold-feather-hfjx23

Раньше мы уже исправляли это в 4a0f713, но в какой-то момент поведение сломалось.
В v5 это тоже нужно занести.

@mendrew mendrew added this to the v6.0.1 milestone Feb 22, 2024
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Feb 22, 2024
Copy link
Contributor

github-actions bot commented Feb 22, 2024

size-limit report 📦

Path Size
JS 351.9 KB (0%)
JS (gzip) 107.61 KB (0%)
JS (brotli) 89.01 KB (0%)
JS import Div (tree shaking) 1.43 KB (0%)
CSS 257.97 KB (+0.04% 🔺)
CSS (gzip) 33.81 KB (+0.03% 🔺)
CSS (brotli) 27.45 KB (+0.05% 🔺)

Copy link

codesandbox-ci bot commented Feb 22, 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 Feb 22, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Feb 22, 2024

👀 Docs deployed

Commit 956507d

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.13%. Comparing base (ba1fbfa) to head (956507d).
Report is 14 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6613   +/-   ##
=======================================
  Coverage   82.13%   82.13%           
=======================================
  Files         330      330           
  Lines       10177    10207   +30     
  Branches     3416     3428   +12     
=======================================
+ Hits         8359     8384   +25     
- Misses       1818     1823    +5     
Flag Coverage Δ
unittests 82.13% <ø> (+<0.01%) ⬆️

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 marked this pull request as ready for review February 22, 2024 14:14
@mendrew mendrew requested a review from a team as a code owner February 22, 2024 14:14
@mendrew mendrew self-assigned this Feb 22, 2024
@mendrew mendrew merged commit df10510 into master Feb 28, 2024
25 checks passed
@mendrew mendrew deleted the mendrew/fix/PullToRefresh/stretch-content branch February 28, 2024 11:07
vkcom-publisher pushed a commit that referenced this pull request Feb 28, 2024
Растягиваем PullToRefresh по высоте, чтобы контент мог занимать всю высоту панели.
Одна из проблем была с `Placeholder` в режиме `stretched`, который переставал выравниваться по центру, если был обернут в `PullToRefresh`. Без жесткого кастома нельзя отцентрировать по вертикали `Placeholder` `stretched` при наличии `PullToRefresh`
Пример где `PullToRefresh` ломал поведение `Placeholder` https://codesandbox.io/p/sandbox/bold-feather-hfjx23

Раньше мы уже исправляли это в 4a0f713, но в какой-то момент поведение сломалось.
@mendrew mendrew mentioned this pull request Feb 28, 2024
@vkcom-publisher
Copy link
Contributor

v5.10.1 🎉

@vkcom-publisher
Copy link
Contributor

v6.0.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча v5.10.1
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants