From 8222926d9c2348e4ce5c03972766f871f7f1a9fc Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 25 Oct 2026 20:25:57 +0100 Subject: [PATCH] Avoid the Windows small macro in the news widget (by Codex) --- src/modern/ui/news_screens.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) +