kontent-ai/smart-link

Border not rendered if the element is big

Closed this issue · 0 comments

Brief bug description

I have tried to render the web spotlight and if I use it on pretty long article text, the border and the pencil is not rendered. The click-through is working still.

I don't see the <kontent-smart-link-element> tag in <kontent-smart-link-overlay> tag in html.

image

Repro steps

  1. Clone https://github.com/Kentico/gatsby-starter-kontent-lumen/tree/webspotlight
  2. npm i # should copy .env.template and name it .env
  3. npm run develop
  4. Enter http://localhost:8000/articles/humane-typography-in-the-digital-age/?preview-mode=true

Expected behavior

I expect to have a pencil and border no matter what 😄

Additional context

If I un-zoom the page the border is rendered.
image