From 0ac66001bf12b0b384045c6d0143b9afdbf0fb5a Mon Sep 17 00:00:00 2001 From: amass Date: Fri, 3 Jan 2025 00:02:00 +0800 Subject: [PATCH] add style. --- WebApplication/Application.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WebApplication/Application.cpp b/WebApplication/Application.cpp index 000a835..65defc7 100644 --- a/WebApplication/Application.cpp +++ b/WebApplication/Application.cpp @@ -87,11 +87,15 @@ void Application::authEvent() { if (m_loginPage) { if (m_navigationBar != nullptr) { m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage)); + m_loginPageRef->removeStyleClass("bulma-m-auto"); + m_loginPageRef->removeStyleClass("bulma-container"); } } else if (m_loginPageRef != nullptr && m_loginPageRef->parent() == m_root) { m_loginPage = m_loginPageRef->parent()->removeWidget(m_loginPageRef); if (m_navigationBar != nullptr) { m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage)); + m_loginPageRef->removeStyleClass("bulma-m-auto"); + m_loginPageRef->removeStyleClass("bulma-container"); } } setInternalPath("/", true); @@ -119,6 +123,7 @@ void Application::handlePathChange(const std::string &path) { if (m_loginPage) { m_root->clear(); m_loginPageRef = m_root->addWidget(std::move(m_loginPage)); + m_loginPageRef->addStyleClass("bulma-m-auto bulma-container"); } } } else {