Skip to content

Commit

Permalink
use video instead of iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Nov 30, 2023
1 parent d7141ab commit 84ba154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions resources/css/bem/artist.less
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@

&__video {
margin-top: 20px;
max-width: 100%;
border-radius: @border-radius-large;
overflow: hidden;
}
Expand Down
6 changes: 1 addition & 5 deletions resources/views/artists/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@
{!! markdown($artist->description) !!}

@if ($artist->video_url !== null)
<div class="artist__video">
<div class="u-embed-wide">
<iframe src="{{ $artist->video_url }}" allowfullscreen></iframe>
</div>
</div>
<video class="artist__video" src="{{ $artist->video_url }}" controls></video>
@endif
</div>
@if (count($json['albums']) > 0)
Expand Down

0 comments on commit 84ba154

Please sign in to comment.