diff --git a/src/modern/ui/news_screens.inc b/src/modern/ui/news_screens.inc index 1bcf806..4d1745a 100644 --- a/src/modern/ui/news_screens.inc +++ b/src/modern/ui/news_screens.inc @@ -198,9 +198,9 @@ std::string App::render_news_widget(const Json &object) { const auto data = demo_news_view(*s.world, s.state, "inbox", ""); if (!data.value("ok", false)) return ""; - const bool small = + const bool compact_preview = object.value("w", 472) <= 472 && object.value("h", 472) <= 472; - const int limit = small ? 2 : 3; + const int limit = compact_preview ? 2 : 3; std::string out = btn("open:news", "Postfach ยท " + std::to_string(data.at("unread").get()) +