sanity-io / sanity

Sanity Studio – Rapidly configure content workspaces powered by structured content
https://www.sanity.io
MIT License
5.27k stars 427 forks source link

PortableText "inline blocks" style bug #7331

Open deckchairlabs opened 3 months ago

deckchairlabs commented 3 months ago

Describe the bug

The display of "inline blocks" previews in the portable text editor need improvement.

To Reproduce

Steps to reproduce the behavior:

Add any kind of "inline block" to a portable text editor and observe the result.

Expected behavior

It would be ideal if the default preview for "inline blocks" would match the line-height of the surrounding text.

Screenshots image

Which versions of Sanity are you using?

@sanity/cli (global)             3.53.0 (up to date)
@sanity/icons                     3.3.1 (up to date)
@sanity/image-url                 1.0.2 (up to date)
@sanity/orderable-document-list   1.2.1 (up to date)
@sanity/preview-url-secret       1.6.19 (up to date)
@sanity/rich-date-input           3.0.4 (up to date)
@sanity/ui                        2.8.8 (up to date)
@sanity/vision                   3.53.0 (up to date)
sanity                           3.53.0 (up to date)

Which versions of Node.js / npm are you running?

10.8.1
v20.16.0
deckchairlabs commented 3 months ago

I can also confirm that removing the custom icon, doesn't improve things

image