Skip to content

Commit

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

&__video {
position: absolute;
margin-top: 20px;
aspect-ratio: 16 / 9;
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: 1 addition & 3 deletions resources/views/artists/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@
{!! markdown($artist->description) !!}

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

0 comments on commit c5b59e7

Please sign in to comment.