From 426e56613c779bf862f1e750017bf4406d4cc184 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 29 Aug 2021 17:08:46 +0200 Subject: [PATCH] FrontLightWidget: Fix "Auto" max_width (#8144) re: https://github.com/koreader/koreader/issues/8070#issuecomment-902162990 --- frontend/ui/widget/frontlightwidget.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/frontlightwidget.lua b/frontend/ui/widget/frontlightwidget.lua index 663b3aa47..9e82c3628 100644 --- a/frontend/ui/widget/frontlightwidget.lua +++ b/frontend/ui/widget/frontlightwidget.lua @@ -399,7 +399,7 @@ function FrontLightWidget:addWarmthWidgets(num_warmth, step, vertical_group) local checkbutton_auto_nl = CheckButton:new({ text = _("Auto"), checked = self.powerd.auto_warmth, - max_width = math.floor(self.screen_width * 0.3), + max_width = math.floor(self.screen_width * 0.15), callback = function() if self.powerd.auto_warmth then self.powerd.auto_warmth = false