Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: reset navbar_style default color

shuai4ae8d8ac8c00
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;
}