fix(subscription): fixed text clipping on subscription panel (#2198)

This commit is contained in:
Waleed
2025-12-04 15:12:50 -08:00
committed by GitHub
parent dc5a2b1ad1
commit ca3eb5b5a5

View File

@@ -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` }}
/>
</>
) : (