mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 17:51:20 -08:00
feat: enhance liquid glass plugin with customizable width and improved s…
This commit is contained in:
1 parent
efa757ca2d
commit
b7d94558b2
6 files changed
+26
-12
No files matched your search
@@ -15,9 +15,13 @@ export default function artplayerPluginLiquidGlass(option = {}) {
|
||||
|
||||
art.on('control', (state) => {
|
||||
if (state) {
|
||||
$liquidGlass.style.width = option.width || '500px'
|
||||
$liquidGlass.style.width = option.width;
|
||||
$liquidGlass.style['max-width'] = option['max-width'];
|
||||
$liquidGlass.style['min-width'] = option['min-width'];
|
||||
} else {
|
||||
$liquidGlass.style.width = '';
|
||||
$liquidGlass.style['max-width'] = '';
|
||||
$liquidGlass.style['min-width'] = '';
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
.artplayer-plugin-liquid-glass {
|
||||
&.art-control-show {
|
||||
--art-control-height: 42px !important;
|
||||
--art-control-icon-size: 24px !important;
|
||||
--art-control-icon-scale: 1.1 !important;
|
||||
--art-control-height: 42px;
|
||||
--art-control-icon-size: 24px;
|
||||
--art-control-icon-scale: 1.1;
|
||||
|
||||
.art-bottom {
|
||||
align-items: center;
|
||||
|
||||
Reference in new issue
Block a user