Skip to content

Commit e128684

Browse files
committed
Fix for lite you tube video images
1 parent 69c0fc6 commit e128684

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/.vitepress/components/YouTube.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ const props = defineProps({
1818
</script>
1919

2020
<style scoped>
21+
lite-youtube {
22+
width: 100%;
23+
height: 100%;
24+
aspect-ratio: 16 / 9;
25+
display: block;
26+
}
2127
</style>

src/.vitepress/config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ export default defineConfig({
1212
ignoreDeadLinks: true,
1313
cleanUrls: true,
1414
outDir: "../dist/docs",
15+
vue: {
16+
template: {
17+
compilerOptions: {
18+
isCustomElement: (tag) => tag === 'lite-youtube'
19+
}
20+
}
21+
},
1522
markdown: {
1623
config(md) {
1724
// Fix for image width and height handling for proper scrolling

0 commit comments

Comments
 (0)