Skip to content

Commit 3ef67ac

Browse files
[WEB-1417] chore: fix size updating issue on create workspace form when multiple errors are shown. (#4575)
1 parent b574328 commit 3ef67ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web/components/onboarding/create-workspace.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ export const CreateWorkspace: React.FC<Props> = (props) => {
224224
)}
225225
/>
226226
<p className="text-sm text-onboarding-text-300">You can only edit the slug of the URL</p>
227-
{slugError && <span className="-mt-3 text-sm text-red-500">Workspace URL is already taken!</span>}
227+
{slugError && <p className="-mt-3 text-sm text-red-500">Workspace URL is already taken!</p>}
228228
{invalidSlug && (
229-
<span className="text-sm text-red-500">{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}</span>
229+
<p className="text-sm text-red-500">{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}</p>
230230
)}
231231
</div>
232232
<hr className="w-full border-onboarding-border-100" />

web/components/workspace/create-workspace-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
188188
)}
189189
/>
190190
</div>
191-
{slugError && <span className="-mt-3 text-sm text-red-500">Workspace URL is already taken!</span>}
191+
{slugError && <p className="-mt-3 text-sm text-red-500">Workspace URL is already taken!</p>}
192192
{invalidSlug && (
193-
<span className="text-sm text-red-500">{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}</span>
193+
<p className="text-sm text-red-500">{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}</p>
194194
)}
195195
</div>
196196
<div className="space-y-1 text-sm">

0 commit comments

Comments
 (0)