From 329a75bbfd81b2a7b9084ed3edc5c23e20f308b7 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 24 Jun 2024 10:13:15 +0800 Subject: [PATCH] fix #396 --- package.json | 3 ++- plugins/trendingshow/__init__.py | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5f83122..e88a7f5 100644 --- a/package.json +++ b/package.json @@ -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": "不同屏幕大小,支持分开设置" } }, diff --git a/plugins/trendingshow/__init__.py b/plugins/trendingshow/__init__.py index 542a619..9d0a551 100644 --- a/plugins/trendingshow/__init__.py +++ b/plugins/trendingshow/__init__.py @@ -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')):