From d099a85c5901e31ce0054a242f1c0306e1586794 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Sun, 13 Nov 2022 04:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E5=B8=AE=E5=8A=A9=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=9C=80=E5=B0=8F=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + basic_plugins/help/data_source.py | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 7d254eb0..0bab08e3 100644 --- a/README.md +++ b/README.md @@ -300,6 +300,7 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能 * 更新天气api * 使用道具可以附带额外信息供函数使用 +* 限制帮助图片最小宽度 ### 2022/11/12 diff --git a/basic_plugins/help/data_source.py b/basic_plugins/help/data_source.py index 16d425a8..69d0149c 100755 --- a/basic_plugins/help/data_source.py +++ b/basic_plugins/help/data_source.py @@ -259,6 +259,7 @@ def _create_help_img( width += img.w + 10 B = BuildImage(width + 100, height + 250, font_size=24) width, _ = get_max_width_or_paste(simple_help_img_list, B) + width = width if width > 870 else 870 bk = None random_bk = os.listdir(random_bk_path) if random_bk: