Creating notes via Graphql API layout issue in order notes

benny14
Tourist
4 1 0

Notes created for an order using the graphql api do not preserve line-breaks and the word-wrap css make the page look a mess forcing it to the right.

Screenshot 2021-11-04 at 14.28.09.png

 

When it should look like this:

Screenshot-2021-11-04-at-14.31.40.jpg

 

Does anyone have a solution to this?

 

Thanks

 

Replies 2 (2)

benny14
Tourist
4 1 0

I would love to write comments on an order via the API. Notes is a rubbish workaround and I know it will cause me some issues.

wopanese
Shopify Partner
1 0 0

It's not a perfect solution but you can add  html <br/> to make it line break.
Of course, the display in the order admin does NOT translate the html and shows it as text.  This is inconsistent.