Improve alerts positioning

This commit is contained in:
nemunaire 2023-01-16 13:38:51 +01:00
commit 5090e8068d
2 changed files with 12 additions and 9 deletions

View file

@ -347,6 +347,7 @@ class RATPNextStopModule:
"icon": "wi-earthquake.png",
})
align -= int(line_height * 0.33)
image = image.crop((0,0,width, min(align, height)))
return image, alerts