diff --git a/frontend/ui/widget/datewidget.lua b/frontend/ui/widget/datewidget.lua index 57b50b041..995c915b5 100644 --- a/frontend/ui/widget/datewidget.lua +++ b/frontend/ui/widget/datewidget.lua @@ -89,7 +89,7 @@ function DateWidget:update() alignment = "center", face = self.title_face, bold = true, - width = math.floor(self.screen_width * 0.02), + width = math.floor(math.min(self.screen_width, self.screen_height) * 0.02), } local date_group = HorizontalGroup:new{ align = "center",