Skip to content

Commit

Permalink
fix: textarea overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaShostyr committed Mar 5, 2025
1 parent 0854487 commit b20e421
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system/core/src/components/TextAreaWithIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const fullStyles = css`
var(--tk-input-icon-gap)
);
grid-template-columns:
var(--tk-input-icon-end-padding) var(--tk-input-icon-size) auto var(
var(--tk-input-icon-end-padding) var(--tk-input-icon-size) 1fr var(
--tk-input-icon-size
)
var(--tk-input-icon-end-padding);
Expand Down
2 changes: 1 addition & 1 deletion system/core/src/components/TextAreaWithPrefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const fullStyles = css`
);
grid-template-columns:
min-content
auto
1fr
var(--tk-input-icon-gap)
var(--tk-input-icon-size)
var(--tk-input-icon-gap)
Expand Down
2 changes: 1 addition & 1 deletion system/core/src/components/TextAreaWithSuffix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const fullStyles = css`
var(--tk-input-icon-gap)
var(--tk-input-icon-size)
var(--tk-input-icon-gap)
auto
1fr
min-content;
grid-template-rows: var(--tk-textarea-height) auto;
gap: 0;
Expand Down
19 changes: 19 additions & 0 deletions system/stories/src/TextArea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,25 @@ const getPropRows: (
{
prefix: <span>ZH-CN</span>,
iconAfter
},
{
suffix: <span>.com</span>,
defaultValue: 'LongLongLongLongTextWithoutSpaces'
},
{
suffix: <span>@tablecheck.com</span>,
iconBefore,
'data-stretch': true,
defaultValue: 'LongLongLongLongTextWithoutSpaces'
},
{
prefix: <span>EN</span>,
defaultValue: 'LongLongLongLongTextWithoutSpaces'
},
{
prefix: <span>ZH-CN</span>,
iconAfter,
defaultValue: 'LongLongLongLongTextWithoutSpaces'
}
];
};
Expand Down

0 comments on commit b20e421

Please sign in to comment.