Flagen Hintergrund Styling

This commit is contained in:
mikka 2026-05-16 10:41:56 +02:00
parent 661c703dd7
commit 916553ad47
3 changed files with 8 additions and 7 deletions

4
app.py
View file

@ -249,12 +249,14 @@ def loeschen():
except TypeError: except TypeError:
return "Irgendwas ist GANZ falsch", 400 return "Irgendwas ist GANZ falsch", 400
try: try:
with open(dateiNameFürListe(liste), "x") as f: with open(dateiNameFürListe(liste), "r+") as f:
songs = json.load(f) songs = json.load(f)
if len(songs) < song + 1: if len(songs) < song + 1:
return "Das Lied Gibt es Nicht", 400 return "Das Lied Gibt es Nicht", 400
del songs[song] del songs[song]
f.seek(0)
json.dump(songs, f, indent=2, ensure_ascii=False) json.dump(songs, f, indent=2, ensure_ascii=False)
f.truncate()
return redirect("/remove?liste=" + liste, 303) return redirect("/remove?liste=" + liste, 303)
except FileNotFoundError: except FileNotFoundError:
return "Die Liste Ist nicht da (Du kannst Sie anlegen)", 400 return "Die Liste Ist nicht da (Du kannst Sie anlegen)", 400

View file

@ -1,10 +1,10 @@
<style> <style>
#flex-container { #flex-container {
border: 1px solid black;
border-radius: 0.25rem;
overflow: auto; overflow: auto;
scroll-snap-type: x mandatory; scroll-snap-type: x mandatory;
display: flex; display: flex;
border: none;
gap: 5px;
} }
article { article {
flex-wrap: row nowrap; flex-wrap: row nowrap;
@ -18,10 +18,9 @@
text-align: center; text-align: center;
} }
article { article {
border: 2px solid; background-size: contain;
border-radius: 15px;
border-color: black;
box-sizing: border-box; box-sizing: border-box;
filter: drop-shadow(6px 6px -10px white);
width: 100%; width: 100%;
padding: 20px; padding: 20px;
} }

View file

@ -1,4 +1,4 @@
{% if karte.backimg and flag %} {% if karte.backimg %}
<style> <style>
#{{karte.wikiid}} { #{{karte.wikiid}} {
background-image: url("{{karte.backimg}}"); background-image: url("{{karte.backimg}}");