Avoid the Windows small macro in the news widget (by Codex)

This commit is contained in:
Codex committed 2026-10-25 20:25:57 +01:00
1 parent a45217c362
commit 8222926d9c
1 file changed
+2 -2
+2 -2
View File
@@ -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",
"<span>Postfach · " + std::to_string(data.at("unread").get<int>()) +