add style.
All checks were successful
Deploy / Build (push) Successful in 5m21s

This commit is contained in:
amass 2025-01-03 00:02:00 +08:00
parent fe704cb359
commit 0ac66001bf

View File

@ -87,11 +87,15 @@ void Application::authEvent() {
if (m_loginPage) { if (m_loginPage) {
if (m_navigationBar != nullptr) { if (m_navigationBar != nullptr) {
m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage)); 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) { } else if (m_loginPageRef != nullptr && m_loginPageRef->parent() == m_root) {
m_loginPage = m_loginPageRef->parent()->removeWidget(m_loginPageRef); m_loginPage = m_loginPageRef->parent()->removeWidget(m_loginPageRef);
if (m_navigationBar != nullptr) { if (m_navigationBar != nullptr) {
m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage)); m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage));
m_loginPageRef->removeStyleClass("bulma-m-auto");
m_loginPageRef->removeStyleClass("bulma-container");
} }
} }
setInternalPath("/", true); setInternalPath("/", true);
@ -119,6 +123,7 @@ void Application::handlePathChange(const std::string &path) {
if (m_loginPage) { if (m_loginPage) {
m_root->clear(); m_root->clear();
m_loginPageRef = m_root->addWidget(std::move(m_loginPage)); m_loginPageRef = m_root->addWidget(std::move(m_loginPage));
m_loginPageRef->addStyleClass("bulma-m-auto bulma-container");
} }
} }
} else { } else {