diff --git a/CHANGELOG b/CHANGELOG index feb4b4491ef5dfff01acb13d62513d64fa0ecd21..1d7d4dced848af18241ebcafff8fd6d03dcc40bb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -14,13 +14,16 @@ minerva-front (19.0.0~alpha.0) stable; urgency=medium -- Piotr Gawron <piotr.gawron@uni.lu> Fri, 18 Oct 2024 13:00:00 +0200 -minerva-front (18.0.8) stable; urgency=medium +minerva-front (18.1.0) stable; urgency=medium * Small improvement: support for links that should be opened immediately (#342) + * Bug fix: reaction annotations were showing invalid id (#345) * Bug fix: data overlay removal did not work (#333) * Bug fix: submap download did not download selected map (#337) + * Bug fix: styling of notes contains original styling for links (#344) --- Piotr Gawron <piotr.gawron@uni.lu> Fri, 13 Dec 2024 13:00:00 +0200 + +-- Piotr Gawron <piotr.gawron@uni.lu> Thu, 30 Jan 2025 15:00:00 +0200 minerva-front (18.0.7) stable; urgency=medium * Bug fix: export to image did not include overlays (#326) diff --git a/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx b/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx index 48ac8915019f191010dc9f0be3318c53ebfc1fa0..1cf3684dcbb82d21be5758154abdec567e6a9d6b 100644 --- a/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx +++ b/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx @@ -76,10 +76,10 @@ export const BioEntityDrawer = (): React.ReactNode => { </div> )} {modelElement.notes && ( - <span> + <span className="visited:text-purple-600 text-blue-600 underline hover:text-blue-800"> <hr className="border-b border-b-divide" /> <div - className="text-sm font-normal" + className="mt-2 text-sm font-normal" /* eslint-disable-next-line react/no-danger */ dangerouslySetInnerHTML={{ __html: modelElement.notes }} /> diff --git a/src/models/bioEntitySchema.ts b/src/models/bioEntitySchema.ts index 06c194a5aa343af57e202d221df03df6741ea6bb..8a347db6cf8d224d8875d4ada8e3f02b5c81736b 100644 --- a/src/models/bioEntitySchema.ts +++ b/src/models/bioEntitySchema.ts @@ -12,7 +12,7 @@ import { submodelSchema } from './submodelSchema'; export const bioEntitySchema = z.object({ id: z.union([z.number().int().positive(), z.string()]), - immediateLink: z.string().nullable(), + immediateLink: z.string().nullable().optional(), name: z.string(), elementId: z.string(), model: z.number(), diff --git a/src/shared/Toast/Toast.component.tsx b/src/shared/Toast/Toast.component.tsx index a311fa5713af686010bbefd63faaace2f4377790..c8d7804c2ddc4f79dd6424ba7085d9b6d6f9537a 100644 --- a/src/shared/Toast/Toast.component.tsx +++ b/src/shared/Toast/Toast.component.tsx @@ -19,9 +19,8 @@ export const Toast = ({ type, message, onDismiss }: ToastArgs): React.ReactNode 'h-full overflow-y-auto text-base font-bold', type === 'error' ? 'text-red-500' : 'text-green-500', )} - > - {message} - </p> + dangerouslySetInnerHTML={{ __html: message }} + /> <button type="button" onClick={onDismiss} className="ml-auto flex-none"> <Icon name="close" className="ml-3 h-7 w-7 fill-font-500" />