Fixed poetry image width

This commit is contained in:
2023-09-05 08:26:35 +03:00
parent a2da356912
commit 74f89ae7cb
3 changed files with 6 additions and 1 deletions

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

@ -4,4 +4,8 @@
.text {
white-space: pre-wrap;
}
.image {
width: 100%;
}