From 325aa3302bcc456ca4578e4059f539577b88a708 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Wed, 31 Dec 2025 08:57:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=BE=B9=E6=A1=86=E9=9A=8F?= =?UTF-8?q?=E5=80=8D=E6=95=B0=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/renderer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/renderer.py b/core/renderer.py index 4948e4c..2bbca5c 100644 --- a/core/renderer.py +++ b/core/renderer.py @@ -164,7 +164,9 @@ class ExcelRenderer: bg_color = self._parse_color(fill_color, default=(255, 255, 255)) # Draw background and border - draw.rectangle([x1, y1, x2, y2], fill=bg_color, outline=(200, 200, 200)) + # Scale border width: at least 1px, roughly 1px per scale unit but kept thin for aesthetics + border_width = max(1, scale) + draw.rectangle([x1, y1, x2, y2], fill=bg_color, outline=(200, 200, 200), width=border_width) # Content cell_value = cell.value