Skip to content

Commit

Permalink
feat: wrap input field when screen is small
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritanand committed Nov 12, 2023
1 parent 7adf2dd commit ce1ade1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/web/app/ama/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ function Ama({
toast.success("Joined Room 🤩");
} catch (e) {
if (e instanceof AxiosError) {
toast.error(e.message || "An error occurred");
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access -- e.response is defined since e is an AxiosError
toast.error(e.response?.data.message || "An error occurred");
} else {
toast.error("An error occurred");
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/ui/InputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function InputField<T extends string>({
error: string | undefined;
}) {
return (
<div className="flex items-center gap-4">
<div className="flex flex-wrap items-center gap-4">
<label className="min-w-[85px] font-bold" htmlFor={label}>
{label}
</label>
Expand Down

0 comments on commit ce1ade1

Please sign in to comment.