mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
web/timeline: add vertical align for custom emojis
This commit is contained in:
parent
63268a0ccb
commit
543c3bcc25
2 changed files with 5 additions and 1 deletions
|
@ -10,3 +10,7 @@ div.media-container {
|
|||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
img[data-mx-emoticon] {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
|
|
@ -188,7 +188,7 @@ export const sanitizeHtmlParams: sanitizeHtml.IOptions = {
|
|||
// eslint-disable-next-line id-length
|
||||
a: ["href", "name", "target", "rel"], // remote target: custom to matrix
|
||||
// img tags also accept width/height, we just map those to max-width & max-height during transformation
|
||||
img: ["src", "alt", "title", "style"],
|
||||
img: ["src", "alt", "title", "style", "data-mx-emoticon"],
|
||||
ol: ["start"],
|
||||
code: ["class"], // We don't actually allow all classes, we filter them in transformTags
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue