mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(subscription): fixed text clipping on subscription panel (#2198)
This commit is contained in:
@@ -169,6 +169,8 @@ export const UsageLimit = forwardRef<UsageLimitRef, UsageLimitProps>(
|
||||
}
|
||||
}
|
||||
|
||||
const inputWidthCh = Math.max(3, inputValue.length + 1)
|
||||
|
||||
return (
|
||||
<div className='flex items-center'>
|
||||
{isEditing ? (
|
||||
@@ -200,7 +202,7 @@ export const UsageLimit = forwardRef<UsageLimitRef, UsageLimitProps>(
|
||||
autoCorrect='off'
|
||||
autoCapitalize='off'
|
||||
spellCheck='false'
|
||||
style={{ width: `${Math.max(3, inputValue.length)}ch` }}
|
||||
style={{ width: `${inputWidthCh}ch` }}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user