Avoid the Windows small macro in the news widget (by Codex)
This commit is contained in:
1 parent
a45217c362
commit
8222926d9c
1 file changed
+2
-2
@@ -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>()) +
|
||||
|
||||
Reference in new issue
Block a user