Add a background to not full width videos

This commit is contained in:
Daniele Tonon
2023-10-30 18:44:23 +01:00
parent d50cd65165
commit 84d5914b7f

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%%" 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)