add danmuku resize

This commit is contained in:
Harvey Zack committed 2022-05-15 07:55:52 +08:00
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;