Skip to content

Commit

Permalink
fix: background color to video (if offline)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Dec 20, 2024
1 parent 7ad7432 commit 1120b10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Converter/Parsedown.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ private function createMediaFromLink(array $link, string $type = 'video'): array
if (isset($block['element']['attributes']['poster'])) {
$block['element']['attributes']['poster'] = (string) new Asset($this->builder, $block['element']['attributes']['poster'], ['force_slash' => false]);
}
$block['element']['attributes']['style'] = 'background-color: #d8d8d8;'; // background color if offline

return $block;
case 'audio':
Expand Down

0 comments on commit 1120b10

Please sign in to comment.