mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-11-28 19:04:18 +00:00
🔧 Fix image margin
This commit is contained in:
parent
7f912efbca
commit
164e5dd83c
2 changed files with 13 additions and 4 deletions
|
@ -6,10 +6,10 @@ import classNames from "classnames"
|
|||
|
||||
export default function Image({ src, description, className, ...props }) {
|
||||
return (
|
||||
<Paragraph>
|
||||
<div className={Style.ImageContainer}>
|
||||
<Anchor href={src}>
|
||||
<img alt={`[${description}]`} title={description} src={src} className={classNames(Style.Image, className)} {...props}/>
|
||||
<img alt={`[${description}]`} title={description} src={src} className={classNames(Style.Img, className)} {...props}/>
|
||||
</Anchor>
|
||||
</Paragraph>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
.Image {
|
||||
.ImageContainer {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.Img {
|
||||
max-width: 100%;
|
||||
}
|
Loading…
Reference in a new issue