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 languageOptions = []LanguageOption{
|
||||
{Code: "", Name: "Any"},
|
||||
{Code: "", Name: "Any Language"},
|
||||
{Code: "en", Name: "English"},
|
||||
{Code: "af", Name: "Afrikaans"},
|
||||
{Code: "ar", Name: "العربية (Arabic)"},
|
||||
|
|
|
@ -1156,7 +1156,7 @@ p {
|
|||
position: absolute;
|
||||
margin-top: 0px;
|
||||
top: 20px;
|
||||
left: 38px;
|
||||
left: 28px;
|
||||
}
|
||||
|
||||
.sub-search-button-wrapper button {
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
</div>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -27,6 +27,9 @@ func loadUserSettings(w http.ResponseWriter, r *http.Request) UserSettings {
|
|||
saveRequired = true
|
||||
}
|
||||
|
||||
// Determine if the selected theme is dark
|
||||
settings.IsThemeDark = settings.Theme == "dark" || settings.Theme == "night" || settings.Theme == "black"
|
||||
|
||||
// Load site language
|
||||
if cookie, err := r.Cookie("site_language"); err == nil {
|
||||
settings.SiteLanguage = cookie.Value
|
||||
|
|
Loading…
Add table
Reference in a new issue