Skip to content

Commit

Permalink
IS-2995: Endret slik at visning av oppfølgingsoppgaveteksten tar hen…
Browse files Browse the repository at this point in the history
…syn til whitespace (#566)
  • Loading branch information
mariusfoss authored Jan 16, 2025
1 parent ccdc8a6 commit 0e22712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mocks/data/personoversiktEnhetMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ export function getOppfolgingsoppgave(frist?: Date): OppfolgingsoppgaveDTO {
createdBy: veilederMock.ident,
updatedAt: new Date(),
createdAt: new Date(),
tekst: 'En tekst',
tekst: 'En tekst\n med\n linjeskift',
oppfolgingsgrunn: getRandomOppfolgingsgrunn(),
frist: frist ?? null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export default function OppfolgingsoppgaveModal({
<BodyShort className="mb-4">
{oppfolgingsgrunnToString[oppfolgingsoppgave.oppfolgingsgrunn]}
</BodyShort>
<BodyLong className="mb-4">{oppfolgingsoppgave.tekst}</BodyLong>
<BodyLong className="mb-4 whitespace-pre-wrap">
{oppfolgingsoppgave.tekst}
</BodyLong>
<Label size="small" as="p">
{texts.frist}
</Label>
Expand Down

0 comments on commit 0e22712

Please sign in to comment.