diff --git a/components/video/card.vue b/components/video/card.vue index 1aafc89..ba5a76a 100644 --- a/components/video/card.vue +++ b/components/video/card.vue @@ -24,7 +24,7 @@ }" class="video-card-overlay absolute inset-0 flex justify-start items-start bg-gradient-to-tr from-black to-transparent p-4" > -
+
-
+
{{ video.name }}
diff --git a/components/video/row.vue b/components/video/row.vue index f3ecb5d..ef6c54b 100644 --- a/components/video/row.vue +++ b/components/video/row.vue @@ -1,6 +1,7 @@ @@ -35,6 +76,15 @@ export default { videos: { type: Array, required: true + }, + cardWidth: { + type: Number, + default: 350 + } + }, + methods: { + scrollRow ( pixels ) { + this.$refs['row'].scrollBy({ left: pixels, behavior: 'smooth' }) } } }