Skip to content

Commit

Permalink
Add break-all class to SelectMenuV2 component (#7068)
Browse files Browse the repository at this point in the history
* Add break-all class to SelectMenuV2 component

* Update PrescriptionDetailCard component

* Update PrescriptionDetailCard component styling
  • Loading branch information
Ashesh3 authored Jan 19, 2024
1 parent d0fdfc9 commit f6159eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Form/SelectMenuV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const SelectMenuV2 = <T, V>(props: SelectMenuProps<T, V>) => {
{value.icon}
</div>
)}
<p className="ml-2.5 text-sm font-medium">
<p className="ml-2.5 break-all text-sm font-medium">
{value.selectedLabel}
</p>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/Components/Medicine/PrescriptionDetailCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ export default function PrescriptionDetailCard({
<Detail className="col-span-9 md:col-span-5" label={t("medicine")}>
{prescription.medicine_object?.name ?? prescription.medicine_old}
</Detail>
<Detail className="col-span-5 md:col-span-2" label={t("route")}>
<Detail
className="col-span-5 break-all md:col-span-2"
label={t("route")}
>
{prescription.route &&
t("PRESCRIPTION_ROUTE_" + prescription.route)}
</Detail>
Expand Down

0 comments on commit f6159eb

Please sign in to comment.