fix: improve design

This commit is contained in:
こけっち 2022-09-16 20:18:57 +09:00 committed by sim1222
parent 1e3547f644
commit 2367b88e65

View File

@ -52,8 +52,9 @@ fetch(`/url?url=${encodeURIComponent(requestUrl.href)}&lang=${requestLang}`).the
}); });
definePageMetadata(computed(() => props.url ? { definePageMetadata(computed(() => props.url ? {
title: 'ytplayer', title: title?.toString() || 'ytplayer',
path: `/notes/${props.url}`, path: `/notes/${props.url}`,
icon: 'fa-brands fa-youtube'
} : null)); } : null));
console.log(await player.url); console.log(await player.url);
@ -64,15 +65,16 @@ console.log(await player.url);
height: 100%; height: 100%;
} }
.player { .player {
position: relative; height: calc(100% - 10px);
width: 100%; width: calc(100% - 10px);
height: 100%; padding: 5px;
>iframe { >iframe {
height: 100%; height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%; width: 100%;
border-radius: 0 0 var(--radius) var(--radius);
left: 0;
top: 0;
} }
} }
</style> </style>