mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
Add a background to not full width videos
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%%" class='max-h-[90vh]'><source src="%s"></video>`,
|
||||
`<video controls width="100%%" class="max-h-[90vh] bg-neutral-300 dark:bg-zinc-700"><source src="%s"></video>`,
|
||||
)
|
||||
|
||||
line = replaceNostrURLsWithTags(nostrMatcher, line)
|
||||
|
||||
Reference in New Issue
Block a user