1
0
Fork 0

wip(org): Changes to layouts and modal images

This commit is contained in:
Joost De Cock 2022-06-09 17:14:17 +02:00
parent b9df1709f1
commit ffea80f77b
7 changed files with 25 additions and 12 deletions

View file

@ -16,10 +16,14 @@ const Figure = props => {
src={props?.src}
alt={props?.alt || ''}
title={title || ''}
className="m-auto max-h-full max-w-full"
className="m-auto"
style={{
maxHeight: "calc(100vh - 6rem)",
maxWidth: "calc(100vw - 6rem)",
}}
/>
{title
? <figcaption className="text-center italic text-base-content mt-1">{title}</figcaption>
? <figcaption className="text-center italic mt-1">{title}</figcaption>
: (
<Popout fixme>
<h5>This image does not have an alt of title specified</h5>