fix(minor): video styles
This commit is contained in:
parent
72e7ed508e
commit
eddca47216
3 changed files with 6 additions and 3 deletions
|
|
@ -700,11 +700,14 @@
|
|||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.section-video-wrapper {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.section-video {
|
||||
aspect-ratio: 16 / 9;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.video-thumbnail {
|
||||
|
|
|
|||
|
|
@ -426,7 +426,7 @@ $.extend(frappe, {
|
|||
},
|
||||
setup_videos: () => {
|
||||
// converts video images into youtube embeds (via Page Builder)
|
||||
$('.section-video').on('click', (e) => {
|
||||
$('.section-video-wrapper').on('click', (e) => {
|
||||
let $video = $(e.currentTarget);
|
||||
let id = $video.data('youtubeId');
|
||||
console.log(id);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<div class="section-features" data-columns="{{ columns or 3 }}">
|
||||
{%- for video in videos -%}
|
||||
<div class="section-feature">
|
||||
<div class="section-video" data-youtube-id="{{ video.youtube_id }}">
|
||||
<div class="section-video-wrapper" data-youtube-id="{{ video.youtube_id }}">
|
||||
<img class="video-thumbnail" src="https://i.ytimg.com/vi/{{ video.youtube_id }}/sddefault.jpg">
|
||||
</div>
|
||||
{%- if video.title -%}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue