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

Add break-all class to SelectMenuV2 component #7068

Merged
merged 3 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading