This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch test in repository https://gitbox.apache.org/repos/asf/answer.git
commit 4ae8d8ac8c009dd787059ca208cdc481a6032632 Author: shuai <[email protected]> AuthorDate: Mon May 19 16:45:17 2025 +0800 fix: reset navbar_style default color --- internal/migrations/init.go | 2 +- internal/migrations/v5.go | 2 +- ui/src/components/Header/index.scss | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/migrations/init.go b/internal/migrations/init.go index b2c814e1..610e24d8 100644 --- a/internal/migrations/init.go +++ b/internal/migrations/init.go @@ -233,7 +233,7 @@ func (m *Mentor) initSiteInfoLegalConfig() { } func (m *Mentor) initSiteInfoThemeConfig() { - themeConfig := `{"theme":"default","theme_config":{"default":{"navbar_style":"colored","primary_color":"#0033ff"}}}` + themeConfig := `{"theme":"default","theme_config":{"default":{"navbar_style":"#0033ff","primary_color":"#0033ff"}}}` _, m.err = m.engine.Context(m.ctx).Insert(&entity.SiteInfo{ Type: "theme", Content: themeConfig, diff --git a/internal/migrations/v5.go b/internal/migrations/v5.go index 9d422d74..91d12f15 100644 --- a/internal/migrations/v5.go +++ b/internal/migrations/v5.go @@ -50,7 +50,7 @@ func addThemeAndPrivateMode(ctx context.Context, x *xorm.Engine) error { } } - themeConfig := `{"theme":"default","theme_config":{"default":{"navbar_style":"colored","primary_color":"#0033ff"}}}` + themeConfig := `{"theme":"default","theme_config":{"default":{"navbar_style":"#0033ff","primary_color":"#0033ff"}}}` themeSiteInfo := &entity.SiteInfo{ Type: "theme", Content: themeConfig, diff --git a/ui/src/components/Header/index.scss b/ui/src/components/Header/index.scss index 1f362dcc..f1df512d 100644 --- a/ui/src/components/Header/index.scss +++ b/ui/src/components/Header/index.scss @@ -84,7 +84,6 @@ // style for colored navbar &.theme-light { - background: rgb(255, 255, 255); .nav-link { color: rgba(0, 0, 0, 0.65); } @@ -93,7 +92,7 @@ box-shadow: none; color: var(--bs-body-color); background-color: rgba(255, 255, 255, 0.2); - border: $border-width $border-style #dee2e6; + border: $border-width $border-style rgba(0, 0, 0, 0.05); &:focus { border: $border-width $border-style $border-color; }
