Fixed poetry image width

This commit is contained in:
Dmitriy Shishkov 2023-09-05 08:26:35 +03:00
parent a2da356912
commit 74f89ae7cb
Signed by: dm1sh
GPG Key ID: 027994B0AA357688
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -28,5 +28,6 @@ dist-ssr
*.db
uploads/
.env
poem_pic/
__pycache__

View File

@ -26,7 +26,7 @@ function Poetry() {
}}
/>
<p><em>{poetry.data.author}</em></p>
<img src={`/poem_pic/${poetry.data.id}.jpg`} alt='Иллюстрация' />
<img className={styles.image} src={`/poem_pic/${poetry.data.id}.jpg`} alt='Иллюстрация' />
</>
)
) : (

View File

@ -5,3 +5,7 @@
.text {
white-space: pre-wrap;
}
.image {
width: 100%;
}