fixed indents

This commit is contained in:
2026-02-01 17:48:48 +01:00
parent 13e8d41a80
commit 53c2233843
+12 -12
View File
@@ -335,8 +335,8 @@ data:
</div>''' </div>'''
html = f"""<!DOCTYPE html> html = f"""<!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<style> <style>
@@ -390,8 +390,8 @@ data:
.todo-list::-webkit-scrollbar-track {{ background: transparent; }} .todo-list::-webkit-scrollbar-track {{ background: transparent; }}
.todo-list::-webkit-scrollbar-thumb {{ background: var(--accent-40); border-radius: 3px; }} .todo-list::-webkit-scrollbar-thumb {{ background: var(--accent-40); border-radius: 3px; }}
</style> </style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="add-form"> <div class="add-form">
<input type="text" class="add-input" id="newTodo" placeholder="+ Add a task" onkeypress="if(event.key==='Enter')addTodo()"> <input type="text" class="add-input" id="newTodo" placeholder="+ Add a task" onkeypress="if(event.key==='Enter')addTodo()">
@@ -442,8 +442,8 @@ data:
}} catch(e) {{ showStatus('Error: ' + e.message, true); }} }} catch(e) {{ showStatus('Error: ' + e.message, true); }}
}} }}
</script> </script>
</body> </body>
</html>""" </html>"""
return Response(content=html, media_type="text/html") return Response(content=html, media_type="text/html")
@APP.post("/userdata/todo/add") @APP.post("/userdata/todo/add")
@@ -515,8 +515,8 @@ data:
quotes_html += f'<div class="quote-item" data-index="{i}"><span class="quote-text">{q_escaped}</span><button class="quote-delete" onclick="deleteQuote({i})">×</button></div>' quotes_html += f'<div class="quote-item" data-index="{i}"><span class="quote-text">{q_escaped}</span><button class="quote-delete" onclick="deleteQuote({i})">×</button></div>'
html = f"""<!DOCTYPE html> html = f"""<!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<style> <style>
@@ -594,8 +594,8 @@ data:
.add-btn:hover {{ background: var(--accent-40); }} .add-btn:hover {{ background: var(--accent-40); }}
.empty-state {{ text-align: center; padding: 20px; opacity: 0.5; font-size: 13px; }} .empty-state {{ text-align: center; padding: 20px; opacity: 0.5; font-size: 13px; }}
</style> </style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<button class="settings-btn" onclick="openModal()" title="Manage quotes">⚙️</button> <button class="settings-btn" onclick="openModal()" title="Manage quotes">⚙️</button>
<div class="quote-display"> <div class="quote-display">
@@ -651,8 +651,8 @@ data:
}} catch(e) {{ console.error(e); }} }} catch(e) {{ console.error(e); }}
}} }}
</script> </script>
</body> </body>
</html>""" </html>"""
return Response(content=html, media_type="text/html") return Response(content=html, media_type="text/html")
@APP.post("/userdata/motivation/add") @APP.post("/userdata/motivation/add")