This commit is contained in:
jxxghp
2024-06-24 10:13:15 +08:00
parent 62ab988016
commit 329a75bbfd
2 changed files with 7 additions and 6 deletions

View File

@@ -734,11 +734,12 @@
"name": "流行趋势轮播",
"description": "在仪表板中显示流行趋势海报轮播图。",
"labels": "仪表板",
"version": "1.2",
"version": "1.3",
"icon": "TrendingShow.jpg",
"author": "jxxghp",
"level": 1,
"history": {
"v1.3": "调整组件大小",
"v1.2": "不同屏幕大小,支持分开设置"
}
},

View File

@@ -13,7 +13,7 @@ class TrendingShow(_PluginBase):
# 插件图标
plugin_icon = "TrendingShow.jpg"
# 插件版本
plugin_version = "1.2"
plugin_version = "1.3"
# 插件作者
plugin_author = "jxxghp"
# 作者主页
@@ -141,10 +141,10 @@ class TrendingShow(_PluginBase):
"""
# 列配置
size_config = {
"mini": {"cols": {"cols": 12, "md": 4}, "height": 150},
"small": {"cols": {"cols": 12, "md": 6}, "height": 225},
"medium": {"cols": {"cols": 12, "md": 8}, "height": 450},
"large": {"cols": {"cols": 12, "md": 12}, "height": 550}
"mini": {"cols": {"cols": 12, "md": 4}, "height": 160},
"small": {"cols": {"cols": 12, "md": 6}, "height": 262},
"medium": {"cols": {"cols": 12, "md": 8}, "height": 335},
"large": {"cols": {"cols": 12, "md": 12}, "height": 500}
}
if self.is_mobile(kwargs.get('user_agent')):