AfterClass-io / afterclass.io-v2

[alpha] https://new.afterclass.io
https://afterclass-io-v2-git-main-afterclass.vercel.app/
MIT License
6 stars 2 forks source link

[BUG] text in review body is not properly formatted #168

Closed davidlhw closed 3 months ago

davidlhw commented 3 months ago

Describe the bug

image

To Reproduce

Steps to reproduce the behavior:

  1. go to prod https://afterclass-io.vercel.app
  2. click on any review
  3. see that text with the newline character are not properly rendered

Expected behavior

A clear and concise description of what you expected to happen.

new line character should be rendered

image

Additional context

This is likely due to the missing CSS property white-space: pre-wrap; on the review modal body theme at src/common/components/ReviewModal/ReviewModal.theme.ts#L25

davidlhw commented 3 months ago

possible duplicate of #148, to investigate

davidlhw commented 3 months ago

update: confirmed duplicate of #148, closing this issue in favor of #148