Update api/main.py
All checks were successful
Build & Push Football Docker Images / build-push-update (push) Successful in 7s

This commit is contained in:
2026-04-12 18:57:13 +00:00
parent 7878565b23
commit 8ba2bf098f

View File

@@ -180,13 +180,17 @@ def widget():
.container {{ .container {{
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; /* center the whole thing */
width: 100%; width: 100%;
padding: 0 4px; height: 100%; /* fill full iframe height */
padding: 0 20px;
}} }}
.section {{ .section {{
display: flex; display: flex;
align-items: stretch; align-items: stretch;
gap: 2px; gap: 8px;
flex: 1; /* each section takes equal space */
justify-content: space-around;
}} }}
.divider {{ .divider {{
width: 1px; width: 1px;
@@ -201,19 +205,19 @@ def widget():
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 2px 6px; padding: 4px 8px;
gap: 2px; gap: 4px;
min-width: 60px; min-width: 80px;
}} }}
.past {{ opacity: 0.7; }} .past {{ opacity: 0.7; }}
.future {{ opacity: 1; }} .future {{ opacity: 1; }}
.badge {{ .badge {{
width: 24px; width: 36px;
height: 24px; height: 63px;
object-fit: contain; object-fit: contain;
}} }}
.name {{ .name {{
font-size: 9px; font-size: 12px;
font-weight: 600; font-weight: 600;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
@@ -224,19 +228,19 @@ def widget():
.home-name {{ color: #cbd5e1; }} .home-name {{ color: #cbd5e1; }}
.away-name {{ color: #94a3b8; }} .away-name {{ color: #94a3b8; }}
.score {{ .score {{
font-size: 12px; font-size: 14px;
font-weight: 800; font-weight: 800;
color: #4ade80; color: #4ade80;
padding: 2px 0; padding: 2px 0;
}} }}
.fixture {{ .fixture {{
font-size: 9px; font-size: 12px;
color: #93c5fd; color: #93c5fd;
text-align: center; text-align: center;
line-height: 1.4; line-height: 1.4;
}} }}
.comp {{ .comp {{
font-size: 8px; font-size: 9px;
color: #475569; color: #475569;
font-weight: 500; font-weight: 500;
}} }}