Limit video size to the viewport

This commit is contained in:
Daniele Tonon
2023-10-28 23:19:38 +02:00
parent b44defdc13
commit aee216ee5c

View File

@@ -346,7 +346,7 @@ func basicFormatting(input string, skipNostrEventLinks bool, usingTelegramInstan
for i, line := range lines {
line = replaceURLsWithTags(line,
imageReplacementTemplate,
`<video controls width="100%%"><source src="%s"></video>`,
`<video controls width="100%%" class='max-h-[90vh]'><source src="%s"></video>`,
)
line = replaceNostrURLsWithTags(nostrMatcher, line)