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(UsersStack): make counter width adaptive #8066

Conversation

EldarMuhamethanov
Copy link
Contributor


  • e2e-тесты
  • Дизайн-ревью
  • Release notes

Описание

Сейчас, в счетчике в компоненте UsersStack при двузначном числе, числа прилипают к краям при размере компонента 'm'. Нужно сделать так, чтобы ширина счетчика увеличивалась адаптивно содержимому

Изменения

  • Доработал отображение счетчика в компоненте UsersStack, так чтобы ширина увеличивалась в случае, если текст не помещался

Для дизайн ревью

Чтобы посмотреть новое поведение можно зайти в сторибук, в компонента UsersStack, и поменять свойство count на двузначное число

Release notes

Исправления

  • UsersStack: Счетчик теперь адаптивно меняет свою ширину

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner December 12, 2024 09:01
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Dec 12, 2024
@EldarMuhamethanov EldarMuhamethanov requested a review from a team December 12, 2024 09:01
@EldarMuhamethanov EldarMuhamethanov removed the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Dec 12, 2024
Copy link

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

size-limit report 📦

Path Size
JS 388.41 KB (+0.01% 🔺)
JS (gzip) 117.84 KB (+0.01% 🔺)
JS (brotli) 96.94 KB (-0.11% 🔽)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 341.34 KB (+0.11% 🔺)
CSS (gzip) 42.26 KB (+0.07% 🔺)
CSS (brotli) 33.69 KB (+0.26% 🔺)

Copy link
Contributor

e2e tests

⚠️ Some screenshots were failed. See Playwright Report.

Playwright Report

Copy link
Contributor

👀 Docs deployed

Commit caa57a4

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.58%. Comparing base (2789dd1) to head (caa57a4).
Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8066      +/-   ##
==========================================
+ Coverage   95.54%   95.58%   +0.04%     
==========================================
  Files         398      393       -5     
  Lines       11306    11205     -101     
  Branches     3734     3690      -44     
==========================================
- Hits        10802    10710      -92     
+ Misses        504      495       -9     
Flag Coverage Δ
unittests 95.58% <ø> (+0.04%) ⬆️

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.

Copy link
Contributor

@andrey-medvedev-vk andrey-medvedev-vk left a comment

Choose a reason for hiding this comment

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

🔥

Классно с border-radius придумал!

Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

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

👍 🧠

Copy link
Contributor

@qurle qurle left a comment

Choose a reason for hiding this comment

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

all good

@EldarMuhamethanov EldarMuhamethanov merged commit de9fc46 into master Dec 13, 2024
28 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/7573/users-stack-counter-adaptive-width branch December 13, 2024 11:14
BlackySoul pushed a commit that referenced this pull request Dec 16, 2024
* fix(UsersStack): make counter width adaptive

* fix: add screenshots

* test: update screenshots

* fix: remove unused selectors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][UsersStack]: Адаптивная ширина каунтера
4 participants