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 {