Skip to content

Commit 1a35399

Browse files
JSKittyclaude
andcommitted
fix: link-preview images had no height cap, portrait thumbs filled screen
.dmsg-preview-img used width:100% + height:auto with no upper bound, so a portrait YouTube thumbnail in a wide chat could render taller than the viewport. Mirrored the attachment cap (350px) and added object-fit:cover so portraits get cropped to the cap rather than the card growing to fit them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent dcc6186 commit 1a35399

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/styles.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11920,6 +11920,8 @@ hr {
1192011920
.dmsg-preview img:not(.favicon):not(.emoji) {
1192111921
width: 100%;
1192211922
height: auto;
11923+
max-height: 350px;
11924+
object-fit: cover;
1192311925
border-radius: 4px;
1192411926
margin-top: 6px;
1192511927
}

0 commit comments

Comments
 (0)