Skip to content

Image-zoom component, how to keep rounded corners during transition? #830

Answered by nktnet1
nktnet1 asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like this has been fixed in fumadocs-ui@13.4.10, i.e. the code below

Example style.css:

.rmiz-rounded-full-zoom [data-rmiz-modal-img] {
  border-radius: 9999px;
}

Example component.tsx:

<ImageZoom
  src={exampleImage}
  className="border-2 rounded-full h-auto w-56 my-0"
  alt="Example Image"
  rmiz={{
    classDialog: 'rmiz-rounded-full-zoom'
  }}
/>

Now works as expected. Thanks @fuma-nama and @Gitstar-OC!

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@fuma-nama
Comment options

@nktnet1
Comment options

@fuma-nama
Comment options

@nktnet1
Comment options

Answer selected by nktnet1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants