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

refactor(Removable): optimize component rendering with indent #8453

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EldarMuhamethanov
Copy link
Contributor


  • e2e-тесты
  • Release notes

Описание

Сейчас отступ в компоненте Removable создается, благодаря тому что мы визуально скрываем кнопку для удаления. Также в ios в верстку добавляется дополнительная кнопка, которая не используется при indent=true. Нужно сделать рефакторинг так, чтобы компонент не тянул лишнюю логику и лишнюю верстку при indent=true.

Изменения

  • Сделал рефакторинг компонент, так чтобы при indent=true, рендерилась только необходимая логика
  • Проверил, что скриншотные тесты проходят и визуально ничего не сломалось

Release notes

Улучшения

  • Removable: теперь отступ в компоненте рендерится более оптимально, не используя лишнююю логику

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner April 10, 2025 13:54
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 404.03 KB (+0.2% 🔺)
JS (gzip) 120.01 KB (+0.12% 🔺)
JS (brotli) 98.61 KB (+0.14% 🔺)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 349.18 KB (+0.07% 🔺)
CSS (gzip) 43.25 KB (+0.07% 🔺)
CSS (brotli) 34.51 KB (+0.05% 🔺)

Copy link
Contributor

e2e tests

⚠️ Some screenshots were failed. See Playwright Report.

Playwright Report

Copy link
Contributor

👀 Docs deployed

Commit 3b84e1b

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.

👍

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.

[Enhancement][Removable]: Оптимизировать режим indent
2 participants