Add support for image popovers (#854)

* feat(popover): Add support for images

* fix: run prettier

* feat(popover): use switch logic for content types & adjust styles

* feat(popover): Add content type data tag for popover-inner class
This commit is contained in:
David Fischer
2024-02-14 21:41:13 +01:00
committed by GitHub
parent 2041341d9f
commit 6c8023463d
3 changed files with 42 additions and 11 deletions

View File

@ -38,6 +38,17 @@
white-space: normal;
}
& > .popover-inner[data-content-type="image"] {
padding: 0;
max-height: 100%;
img {
margin: 0;
border-radius: 0;
display: block;
}
}
h1 {
font-size: 1.5rem;
}