fix: images in article overflow

This commit is contained in:
grassblock 2025-05-24 21:50:15 +08:00
parent db09d3bf88
commit 0569d5577b
2 changed files with 10 additions and 3 deletions

View file

@ -46,14 +46,14 @@ const { instanceDomain, userId, extraParams = '' } = Astro.props;
display: none;
}
/* custom emoji */
.custom-emoji {
div img.custom-emoji {
height: 1.2em;
width: auto;
vertical-align: middle;
margin: 0 0.1em;
}
.custom-emoji.emoji-error {
div img.custom-emoji.emoji-error {
display: none;
}

View file

@ -234,6 +234,12 @@ div.content {
margin: 0.5rem 0;
line-height: 1.3;
}
/* Responsive Images */
img {
max-width: 100%;
height: 100%;
}
}
@ -299,3 +305,4 @@ div.content {
display: none;
}
}