Skip to content

Commit 0ab03df

Browse files
committed
chore(markdown): add a private helper class to reset hardcoded height on img tags
1 parent c5d8790 commit 0ab03df

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/markdown/markdown.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,15 @@ hr {
3333
.MsoNormal {
3434
margin: 0;
3535
}
36+
37+
:host(limel-markdown.reset-img-height) {
38+
// This is not a publicly documented helper class, intended for CRM's internal use.
39+
// Reset image height to auto to avoid issues with fixed heights in some markdown content
40+
// e.g., content copied from MS Word or emails that are sent from a user that has
41+
// added fixed heights to images that appear in the activity feed.
42+
#markdown {
43+
img {
44+
height: auto;
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)