-
Notifications
You must be signed in to change notification settings - Fork 198
fix(Tooltip): rm custom size() middleware #9410
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
Merged
inomdzhon
merged 1 commit into
master
from
imirdzhamolov/fix/tooltip-revert-sizeMiddleware
Jan 29, 2026
Merged
fix(Tooltip): rm custom size() middleware #9410
inomdzhon
merged 1 commit into
master
from
imirdzhamolov/fix/tooltip-revert-sizeMiddleware
Jan 29, 2026
+1
−13
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
size-limit report 📦
|
Contributor
e2e tests |
Contributor
Contributor
👀 Docs deployed
📦 Package ✅yarn add @vkontakte/vkui@https://development.s3.prodcloud.vk.team/pull/9410/973cb94e792acb281d58f7326992d4a2355dab53/pkg/@vkontakte/vkui/_pkg.tgzCommit 973cb94 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9410 +/- ##
==========================================
- Coverage 94.73% 94.72% -0.01%
==========================================
Files 440 440
Lines 11900 11897 -3
Branches 4387 4387
==========================================
- Hits 11273 11269 -4
- Misses 627 628 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SevereCloud
approved these changes
Jan 29, 2026
vkcom-publisher
pushed a commit
that referenced
this pull request
Jan 29, 2026
<!-- Если этот PR закрывает Issue, то укажи ссылку на него. Используй доступные ключевые слова (см. https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests). --> - caused by #9281 - related to #9389
inomdzhon
added a commit
that referenced
this pull request
Jan 30, 2026
<!-- Если этот PR закрывает Issue, то укажи ссылку на него. Используй доступные ключевые слова (см. https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests). --> - caused by #9281 - related to #9389
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[ ] Unit-тесты[ ] e2e-тесты[ ] Дизайн-ревью[ ] Документация фичиОписание
В v7.11.0 в
Tooltipвнесли 2 изменения:Свойство
overflowPadding, чтобы можно было добавить отступы и избавиться от прилипания к краю области видимости.Пересчёт ширины, чтобы
maxWidthне вызлезал заviewportWidth(в v7.11.2 был фикс округления).Но п.2, к сожалению, создал другая проблему, что ширина стала статичной, поэтому для решения проблемы ничего не остается как откатить п.2.
Как воркэраунд, проблему с
maxWidth > viewportWidthнеобхоидмо решать локально – задаватьmaxWidthс вычетомoverflowPadding, учитывая, что эти данные должны быть заведомо известны. Также стоит учитывать какой минимальной ширины устройства у пользователей приложения.К будущей мажорной версии v9, должна будет появится поддержка min() в CSS. Начиная с поддержки
min(), будет возможность добавить новое свойствоfitViewport, чтобы решить проблему с п.2 и в тоже время решить конфликт свойства сmaxWidth.Release notes
Исправления