Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: PatientNoteCard Text Overflowing and Current Address #9609

Merged
1 change: 1 addition & 0 deletions src/components/Common/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default function Breadcrumbs({
<li className="mr-3 flex items-center">
<Button
variant="link"
type="button"
className="rounded bg-gray-200/50 px-1 text-sm font-normal text-gray-800 transition hover:bg-gray-200/75 hover:no-underline"
size="xs"
onClick={() => {
Expand Down
4 changes: 3 additions & 1 deletion src/components/Facility/PatientNoteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ const PatientNoteCard = ({
</div>
</div>
) : (
<div className="text-sm text-secondary-700">{noteField}</div>
<div className="text-sm text-secondary-700 break-all">
AdityaJ2305 marked this conversation as resolved.
Show resolved Hide resolved
{noteField}
</div>
)}
</div>
}
Expand Down
5 changes: 0 additions & 5 deletions src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ const Form = <T extends FormDetails>({
return (
<form
onSubmit={handleSubmit}
onKeyDown={(e) => {
if (e.key === "Enter") {
handleSubmit(e);
}
}}
className={classNames(
"mx-auto w-full",
!props.noPadding && "px-8 py-5 md:px-16 md:py-11",
Expand Down
10 changes: 5 additions & 5 deletions src/components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import CareIcon from "@/CAREUI/icons/CareIcon";

import { Button } from "@/components/ui/button";

import { AuthorizedButton } from "@/components/Common/AuthorizedButton";
import ConfirmDialog from "@/components/Common/ConfirmDialog";
import UserAutocomplete from "@/components/Common/UserAutocompleteFormField";

Expand Down Expand Up @@ -37,6 +36,7 @@ import {
relativeDate,
} from "../../Utils/utils";
import { Avatar } from "../Common/Avatar";
import ButtonV2 from "../Common/ButtonV2";
import Loading from "../Common/Loading";
import Page from "../Common/Page";
import { SkillModel, UserBareMinimum } from "../Users/models";
Expand Down Expand Up @@ -523,7 +523,7 @@ export const PatientHome = (props: {

{NonReadOnlyUsers(authUser.user_type) && (
<div>
<AuthorizedButton
<ButtonV2
AdityaJ2305 marked this conversation as resolved.
Show resolved Hide resolved
id="assign-volunteer"
onClick={() => setOpenAssignVolunteerDialog(true)}
disabled={false}
Expand All @@ -536,12 +536,12 @@ export const PatientHome = (props: {
? t("update_volunteer")
: t("assign_to_volunteer")}
</span>
</AuthorizedButton>
</ButtonV2>
</div>
)}

<div>
<AuthorizedButton
<ButtonV2
id="patient-allow-transfer"
className="flex w-full flex-row bg-white font-semibold text-green-800 hover:bg-secondary-200"
disabled={
Expand All @@ -564,7 +564,7 @@ export const PatientHome = (props: {
? t("disable_transfer")
: t("allow_transfer")}
</span>
</AuthorizedButton>
</ButtonV2>
</div>
</div>
</div>
Expand Down
Loading