Skip to content

Commit

Permalink
🎨 优化自适应高度
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulinyv committed Jul 16, 2023
1 parent 5266d1f commit 09adc88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/njs_help_new/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ async def draw_help():

# 背景高度 (3 列为 600 像素高度)
if list_number > 2:
height = row_number * 600
more = number % 20
if more != 0 and (list_number % 3) == 0:
height = int(((row_number - 1) * 600 + (more * 26.5)) + 70)
else:
height = row_number * 600
else:
height = 600

Expand Down

0 comments on commit 09adc88

Please sign in to comment.