From: 2weiEmu
Date: Mon, 15 Jun 2026 13:52:10 +0000 (+0200)
Subject: updated: some basic style elements
X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=5e13a227f6e91c42fa1b0b76599242c89b7aeaff;p=binbsis50-sm.git
updated: some basic style elements
---
diff --git a/pkg/dbhandling/songsapi.go b/pkg/dbhandling/songsapi.go
index 4022a4b..5489e0f 100644
--- a/pkg/dbhandling/songsapi.go
+++ b/pkg/dbhandling/songsapi.go
@@ -233,6 +233,7 @@ func (dbw *DBWrapper) SongsRestart(w http.ResponseWriter, r *http.Request) {
out, err := exec.Command("/bin/sh", "-c", "sudo docker ps -aqf ancestor=sis50binb:latest").Output()
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
+ w.Write([]byte("Failed to find the id of the docker container that is running: " + err.Error()))
return
}
@@ -240,17 +241,20 @@ func (dbw *DBWrapper) SongsRestart(w http.ResponseWriter, r *http.Request) {
err = exec.Command("/bin/sh", "-c", "sudo docker stop", id).Run()
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
+ w.Write([]byte("Failed to stop the docker container that is running sis50binb: " + err.Error()))
return
}
err = exec.Command("/bin/sh", "-c", "sudo docker rm", id).Run()
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
+ w.Write([]byte("Failed to delete dockere container that is running sis50binb: " + err.Error()))
return
}
err = exec.Command("/bin/sh", "-c", "sudo", dbw.BinbLocation + "./launch.sh").Run()
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
+ w.Write([]byte("Failed to launch sis50binb at the given Binblocation: " + err.Error()))
return
}
diff --git a/public/css/index.css b/public/css/index.css
index f52d6c7..2ee1b13 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -2,15 +2,34 @@
font-family: sans-serif;
}
+button {
+ padding: 5px;
+ border: none;
+ border-radius: 6px;
+ background-color: #bcdee0;
+}
+
+button:hover {
+ background-color: #4be8f2;
+}
+
#innerSongList, #innerSongFileList {
- max-height: 50vh;
overflow-y: scroll;
+ height: 50vh;
+ max-width: 50vw;
+ border: 1px solid grey;
+ border-radius: 10px;
}
.songElement {
display: flex;
margin: 10px;
+ max-width: 40vw;
+ border-radius: 5px;
+ box-shadow: grey 3px 3px 2px;
+ border: 1px solid grey;
+ padding: 4px;
* {
margin: auto 10px auto 10px;
@@ -39,6 +58,12 @@
.songFileElement {
display: flex;
+ margin: 10px;
+ max-width: 40vw;
+ border-radius: 5px;
+ box-shadow: grey 3px 3px 2px;
+ border: 1px solid grey;
+ padding: 4px;
}
.success {
diff --git a/public/index.html b/public/index.html
index b1ec508..224c9e1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -18,6 +18,7 @@
In DB
+ Not In DB
@@ -28,10 +29,14 @@
-
-
-
-
Home
+