mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 14:24:27 +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 {
|
for i, line := range lines {
|
||||||
line = replaceURLsWithTags(line,
|
line = replaceURLsWithTags(line,
|
||||||
imageReplacementTemplate,
|
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)
|
line = replaceNostrURLsWithTags(nostrMatcher, line)
|
||||||
|
|||||||
Reference in New Issue
Block a user