mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
add danmuku resize
This commit is contained in:
1 parent
2b934ab988
commit
a5cda09e3c
4 files changed
+11
-3
No files matched your search
@@ -140,6 +140,10 @@ export default function setting(art, danmuku) {
|
||||
inverseClass(event.target, 'art-current');
|
||||
}
|
||||
});
|
||||
|
||||
art.on('resize', () => {
|
||||
setStyle($emitter, 'display', $controlsCenter.clientWidth < 150 ? 'none' : null);
|
||||
});
|
||||
}
|
||||
|
||||
function addControl() {
|
||||
|
||||
@@ -107,6 +107,7 @@
|
||||
padding: 0 10px 0 0;
|
||||
border: none;
|
||||
outline: none;
|
||||
width: 100%;
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
|
||||
|
||||
Reference in new issue
Block a user