Compare commits

..

2 commits

Author SHA1 Message Date
partisan
fa825d54a7 Merge branch 'main' of https://weforge.xyz/Spitfire/Search
Some checks failed
Run Integration Tests / test (push) Failing after 2m7s
2025-03-02 12:00:31 +01:00
partisan
9b9eded47e fixed 'fetch time' layout on mobile 2025-03-02 12:00:25 +01:00
2 changed files with 18 additions and 5 deletions

View file

@ -226,7 +226,7 @@ func runServer() {
w.Header().Set("Content-Type", "application/opensearchdescription+xml") w.Header().Set("Content-Type", "application/opensearchdescription+xml")
http.ServeFile(w, r, "static/opensearch.xml") http.ServeFile(w, r, "static/opensearch.xml")
}) })
printInfo("Website functionality enabled.") printInfo("Website is enabled.")
} else { } else {
// Redirect all website routes to a "service disabled" handler // Redirect all website routes to a "service disabled" handler
http.HandleFunc("/static/", handleWebsiteDisabled) http.HandleFunc("/static/", handleWebsiteDisabled)
@ -238,7 +238,7 @@ func runServer() {
http.HandleFunc("/image_status", handleWebsiteDisabled) http.HandleFunc("/image_status", handleWebsiteDisabled)
http.HandleFunc("/privacy", handleWebsiteDisabled) http.HandleFunc("/privacy", handleWebsiteDisabled)
http.HandleFunc("/opensearch.xml", handleWebsiteDisabled) http.HandleFunc("/opensearch.xml", handleWebsiteDisabled)
printInfo("Website functionality disabled.") printInfo("Website is disabled.")
} }
if config.NodesEnabled { if config.NodesEnabled {
@ -252,7 +252,7 @@ func runServer() {
func handleWebsiteDisabled(w http.ResponseWriter, r *http.Request) { func handleWebsiteDisabled(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain") w.Header().Set("Content-Type", "text/plain")
w.WriteHeader(http.StatusServiceUnavailable) w.WriteHeader(http.StatusServiceUnavailable)
_, _ = w.Write([]byte("The website functionality is currently disabled.")) _, _ = w.Write([]byte("The website is currently disabled."))
} }
func handlePrivacyPage(w http.ResponseWriter, r *http.Request) { func handlePrivacyPage(w http.ResponseWriter, r *http.Request) {

View file

@ -1602,15 +1602,27 @@ body, h1, p, a, input, button {
} }
.fetched_img { .fetched_img {
margin-top: 135px !important; margin-top: 25px !important;
margin-left: 1.2% !important; margin-left: 1.2% !important;
left: 0px !important; left: 0px !important;
} }
.fetched_vid { .fetched_vid {
margin-top: 135px !important; margin-top: 25px !important;
} }
.fetched_dif_videos {
margin-top: 135px !important;
}
.fetched_dif_files{
margin-top: 25px !important;
}
.fetched_dif_images {
margin-top: 25px;
}
.results_settings { .results_settings {
left: 20px; left: 20px;
font-size: 13px; font-size: 13px;
@ -1622,6 +1634,7 @@ body, h1, p, a, input, button {
} }
form.torrent-sort { form.torrent-sort {
margin-top: 35px;
left: 20px; left: 20px;
} }