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

PLASMA-4007: TextField input width with textAfter #1611

Merged
merged 1 commit into from
Dec 21, 2024
Merged

Conversation

vadim-kudr
Copy link
Contributor

@vadim-kudr vadim-kudr commented Dec 3, 2024

Core

TextField

  • исправлено поведение свойства textAfter, теперь позиция всегда рядом с текстом input

What/why changed

input в TextField при textAfter теперь имеет динамическую ширину

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
# or 
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]

Copy link
Contributor

github-actions bot commented Dec 3, 2024

Theme Builder app deployed!

https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1611/

@vadim-kudr vadim-kudr self-assigned this Dec 5, 2024
@vadim-kudr vadim-kudr changed the title fix: TextField input width with textAfter PLASMA-4007: TextField input width with textAfter Dec 10, 2024
@vadim-kudr vadim-kudr marked this pull request as ready for review December 10, 2024 12:07
@vadim-kudr vadim-kudr added the bugs Something isn't working label Dec 10, 2024
@github-actions github-actions bot requested review from iljs and TitanKuzmich and removed request for Yeti-or, Yakutoc, neretin-trike, TitanKuzmich and shuga2704 December 10, 2024 12:14
min-width: ${({ hasDynamicWidth }) => (hasDynamicWidth ? 'auto' : '60%')};

${Input} {
field-sizing: ${({ hasDynamicWidth }) => (hasDynamicWidth ? 'content' : 'auto')};
Copy link
Contributor

@TitanKuzmich TitanKuzmich Dec 10, 2024

Choose a reason for hiding this comment

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

Смущает на caniuse это свойство. Чет там много браузеров красные
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

это да, можно в тест отдать, пусть посмотряот

вариант, с export const defaultCharacterWidth = '1ch'; не подходит, для него monospace шрифт нужен

Copy link
Contributor Author

Choose a reason for hiding this comment

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

печально, все. Игорь посмотрел. 3й вариант остался )

@vadim-kudr vadim-kudr added this pull request to the merge queue Dec 21, 2024
Merged via the queue into dev with commit 4c753d5 Dec 21, 2024
32 checks passed
@vadim-kudr vadim-kudr deleted the PLASMA-4007 branch December 21, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants