Skip to content

Commit ca3eb5b

Browse files
authored
fix(subscription): fixed text clipping on subscription panel (#2198)
1 parent dc5a2b1 commit ca3eb5b

File tree

1 file changed

+3
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components-new/settings-modal/components/subscription/components/usage-limit

1 file changed

+3
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components-new/settings-modal/components/subscription/components/usage-limit/usage-limit.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ export const UsageLimit = forwardRef<UsageLimitRef, UsageLimitProps>(
169169
}
170170
}
171171

172+
const inputWidthCh = Math.max(3, inputValue.length + 1)
173+
172174
return (
173175
<div className='flex items-center'>
174176
{isEditing ? (
@@ -200,7 +202,7 @@ export const UsageLimit = forwardRef<UsageLimitRef, UsageLimitProps>(
200202
autoCorrect='off'
201203
autoCapitalize='off'
202204
spellCheck='false'
203-
style={{ width: `${Math.max(3, inputValue.length)}ch` }}
205+
style={{ width: `${inputWidthCh}ch` }}
204206
/>
205207
</>
206208
) : (

0 commit comments

Comments
 (0)