1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-13 14:14:42 +02:00

Update MkMediaVideo.vue

This commit is contained in:
syuilo
2026-07-11 17:23:41 +09:00
parent 9f37206f14
commit d55112ec7b

View File

@@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
ref="playerEl"
tabindex="0"
:class="[
$style.videoContainer,
$style.root,
(video.isSensitive && prefer.s.highlightSensitiveMedia) && $style.sensitive,
]"
@contextmenu.stop
@@ -70,7 +70,7 @@ async function reveal() {
</script>
<style lang="scss" module>
.videoContainer {
.root {
container-type: inline-size;
position: relative;
overflow: clip;
@@ -78,6 +78,12 @@ async function reveal() {
&:focus-visible {
outline: none;
}
&:hover {
.playIcon {
scale: 1.2;
}
}
}
.sensitive {
@@ -186,5 +192,7 @@ async function reveal() {
font-size: 120%;
background: var(--MI_THEME-accent);
color: var(--MI_THEME-fgOnAccent);
scale: 1;
transition: scale 100ms ease;
}
</style>