Skip to content

Commit

Permalink
use fixed size/ratio for artist video
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Dec 2, 2023
1 parent 2d02394 commit 031ff9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 7 additions & 2 deletions resources/css/bem/artist.less
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,17 @@
}

&__video {
margin-top: 20px;
max-width: 100%;
position: absolute;
width: 100%;
height: 100%;
border-radius: @border-radius-large;
overflow: hidden;
}

&__video-wrapper {
margin-top: 20px;
}

&__white-link {
.link-white();
.link-plain();
Expand Down
4 changes: 3 additions & 1 deletion resources/views/artists/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
{!! markdown($artist->description) !!}

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

0 comments on commit 031ff9e

Please sign in to comment.