From 38501cebf1636b3254cdf9c814acd39604999072 Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Sun, 29 May 2022 20:56:03 +0800 Subject: [PATCH] Update data_source.py --- basic_plugins/plugin_shop/data_source.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basic_plugins/plugin_shop/data_source.py b/basic_plugins/plugin_shop/data_source.py index 0857dfcd..48d9cb8b 100644 --- a/basic_plugins/plugin_shop/data_source.py +++ b/basic_plugins/plugin_shop/data_source.py @@ -135,10 +135,10 @@ async def show_plugin_repo() -> Union[int, str]: w = w if w > img.w else img.w h += img.h + line_height image_list.append(img) - A = BuildImage(w + 100, h + 100, color="#f9f6f2") - cur_h = 50 + A = BuildImage(w + 50, h + 50, color="#f9f6f2") + cur_h = 25 for img in image_list: - await A.apaste(img, (50, cur_h)) + await A.apaste(img, (25, cur_h)) cur_h += img.h + line_height return A.pic2bs4()