From 188fe546eddcb3e772d86395e9d41abd3e2a74c8 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Tue, 19 May 2026 00:54:01 +0200 Subject: [PATCH] style(overlays): inline build-status badge in workshop actions row Moves the build-status badge (e.g. "ok" / "never built") into the workshop section's .table-actions row, paired with the Refresh from Steam button via a new .table-actions-end flex grouping. Drops the now-redundant "Add items" field-label (aria-label preserves a11y). The _overlay_build_status.html partial gains an omit_badge flag so the workshop block can render the badge inline without it duplicating inside the partial below. Co-Authored-By: Claude Opus 4.7 (1M context) --- l4d2web/l4d2web/static/css/components.css | 6 ++++++ .../templates/_overlay_build_status.html | 2 ++ l4d2web/l4d2web/templates/overlay_detail.html | 17 +++++++++++------ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/l4d2web/l4d2web/static/css/components.css b/l4d2web/l4d2web/static/css/components.css index 8f1a216..477a783 100644 --- a/l4d2web/l4d2web/static/css/components.css +++ b/l4d2web/l4d2web/static/css/components.css @@ -1345,6 +1345,12 @@ div.modal.modal-wide { margin-top: var(--space-m); } +.table-actions-end { + display: flex; + align-items: center; + gap: var(--space-m); +} + .workshop-input { font-family: var(--font-mono); font-size: 0.875rem; diff --git a/l4d2web/l4d2web/templates/_overlay_build_status.html b/l4d2web/l4d2web/templates/_overlay_build_status.html index c44359d..b759514 100644 --- a/l4d2web/l4d2web/templates/_overlay_build_status.html +++ b/l4d2web/l4d2web/templates/_overlay_build_status.html @@ -1,9 +1,11 @@
+ {% if not omit_badge %}
{{ build_state_label }}
+ {% endif %} {% if latest_build %}

{{ latest_build_phrase }} diff --git a/l4d2web/l4d2web/templates/overlay_detail.html b/l4d2web/l4d2web/templates/overlay_detail.html index aa0ac3e..3ca1e2f 100644 --- a/l4d2web/l4d2web/templates/overlay_detail.html +++ b/l4d2web/l4d2web/templates/overlay_detail.html @@ -46,9 +46,9 @@

-

Paste Steam Workshop IDs, item URLs, or collection URLs — one per line. Collections expand automatically.

@@ -64,14 +64,19 @@ {% if can_edit and not latest_build_is_running %}
{% if workshop_items_count %}{{ workshop_items_count }} item{{ "s" if workshop_items_count != 1 else "" }}{% if workshop_items_total_size %} · {{ workshop_items_total_size }} total{% endif %}{% else %}0 items{% endif %} - - - - +
+ {{ build_state_label }} +
+ + +
+
{% endif %} - {% include "_overlay_build_status.html" %} + {% with omit_badge=True %} + {% include "_overlay_build_status.html" %} + {% endwith %} {% endif %}

Files