aligned logo on results page and made various visual fixes
This commit is contained in:
parent
940c1c30e2
commit
d275f5e628
4 changed files with 6 additions and 3 deletions
2
main.go
2
main.go
|
@ -17,7 +17,7 @@ type LanguageOption struct {
|
||||||
var settings UserSettings
|
var settings UserSettings
|
||||||
|
|
||||||
var languageOptions = []LanguageOption{
|
var languageOptions = []LanguageOption{
|
||||||
{Code: "", Name: "Any"},
|
{Code: "", Name: "Any Language"},
|
||||||
{Code: "en", Name: "English"},
|
{Code: "en", Name: "English"},
|
||||||
{Code: "af", Name: "Afrikaans"},
|
{Code: "af", Name: "Afrikaans"},
|
||||||
{Code: "ar", Name: "العربية (Arabic)"},
|
{Code: "ar", Name: "العربية (Arabic)"},
|
||||||
|
|
|
@ -1156,7 +1156,7 @@ p {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
top: 20px;
|
top: 20px;
|
||||||
left: 38px;
|
left: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-search-button-wrapper button {
|
.sub-search-button-wrapper button {
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="settings-row settings-row2">
|
<div class="settings-row settings-row2">
|
||||||
<p class="font-hide">|</p>
|
<p class="font-hide"> </p>
|
||||||
<button class="save save-settings-page" type="submit">Save Settings</button>
|
<button class="save save-settings-page" type="submit">Save Settings</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,6 +27,9 @@ func loadUserSettings(w http.ResponseWriter, r *http.Request) UserSettings {
|
||||||
saveRequired = true
|
saveRequired = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Determine if the selected theme is dark
|
||||||
|
settings.IsThemeDark = settings.Theme == "dark" || settings.Theme == "night" || settings.Theme == "black"
|
||||||
|
|
||||||
// Load site language
|
// Load site language
|
||||||
if cookie, err := r.Cookie("site_language"); err == nil {
|
if cookie, err := r.Cookie("site_language"); err == nil {
|
||||||
settings.SiteLanguage = cookie.Value
|
settings.SiteLanguage = cookie.Value
|
||||||
|
|
Loading…
Add table
Reference in a new issue