mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 14:24:27 +01:00
Limit video size to the viewport
This commit is contained in:
2
utils.go
2
utils.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user