Skip to content

Commit

Permalink
fix: Input fields max character limit
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Oct 30, 2023
1 parent a6af7e9 commit 0d5777d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/components/settings/extension-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ function License({
<Label htmlFor="license">
{t("extensions.actions.license.form.license")}
</Label>
<Textarea id="license" onChange={(e) => setData(e.target.value)} />
<Textarea
id="license"
onChange={(e) => setData(e.target.value)}
maxLength={750}
/>
</div>

<div className="mt-6 flex justify-end">
Expand Down
6 changes: 5 additions & 1 deletion src/components/settings/subscription-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,11 @@ function License({
<Label htmlFor="license">
{t("subscriptions.license_dialog.license")}
</Label>
<Textarea id="license" onChange={(e) => setData(e.target.value)} />
<Textarea
id="license"
onChange={(e) => setData(e.target.value)}
maxLength={750}
/>
</div>

<div className="mt-6 flex justify-end">
Expand Down
6 changes: 5 additions & 1 deletion src/components/settings/vault-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ function EditVaultKey({

<div className="mt-3 grid w-full items-center gap-1.5">
<Label htmlFor="license">{t("vault.actions.edit.data")}</Label>
<Textarea id="license" onChange={(e) => setData(e.target.value)} />
<Textarea
id="license"
onChange={(e) => setData(e.target.value)}
maxLength={750}
/>
</div>

<div className="mt-6 flex justify-end">
Expand Down
6 changes: 5 additions & 1 deletion src/pages/settings/subscriptions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ function LimanLicense({
<Label htmlFor="license">
{t("subscriptions.license_dialog.license")}
</Label>
<Textarea id="license" onChange={(e) => setData(e.target.value)} />
<Textarea
id="license"
onChange={(e) => setData(e.target.value)}
maxLength={750}
/>
</div>

<div className="mt-6 flex justify-end">
Expand Down

0 comments on commit 0d5777d

Please sign in to comment.