Use video screenshot as background blur in story viewer
This commit is contained in:
parent
08b2aeb237
commit
4a39264188
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ export function getStoryBackground(attachment?: AttachmentType): string {
|
||||||
return getBackgroundColor(attachment.textAttachment);
|
return getBackgroundColor(attachment.textAttachment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (attachment.screenshot && attachment.screenshot.url) {
|
||||||
|
return `url("${attachment.screenshot.url}")`;
|
||||||
|
}
|
||||||
|
|
||||||
if (attachment.url) {
|
if (attachment.url) {
|
||||||
return `url("${attachment.url}")`;
|
return `url("${attachment.url}")`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue