From e810a25f97d90b7cc3e3de20830dfc420e1f6c0e Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Fri, 26 Jan 2024 17:58:37 +0100 Subject: [PATCH] changed userlist items style --- docroot/style.css | 2 ++ src/app.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docroot/style.css b/docroot/style.css index 8609876..ad13236 100644 --- a/docroot/style.css +++ b/docroot/style.css @@ -26,6 +26,8 @@ html, body { } .userlist-item { cursor: pointer; + display: block; + width: 100%; } .userlist-gender-M { background-color: #5078CD; diff --git a/src/app.cpp b/src/app.cpp index 2e79df3..3c2a903 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -262,9 +262,9 @@ void App::updateUserlist(Wt::Json::Array unsortedUserList) { userItem->clicked().connect([=, this]() { requestConversation(userName); }); - userItem->setInline(false); + Wt::WCssDecorationStyle style; } - layout->addWidget(std::make_unique(), 1)->setStyleClass("height-spacer"); + layout->addWidget(std::make_unique(), 1)->setStyleClass("height-spacer userlist"); triggerUpdate(); }