Improve single camera GUI layout

This commit is contained in:
2026-08-03 01:11:22 +02:00
parent dcd4ef58d0
commit 1290122e57
4 changed files with 45 additions and 2 deletions
+2
View File
@@ -293,6 +293,7 @@ def render_page(actions, lang, token_param=None):
cards_markup = "".join(cards)
if not cards_markup and not global_markup:
cards_markup = f'<section class="empty-state">{html.escape(text_for(lang, "no_actions"))}</section>'
grid_class = "control-grid grid-single" if len(groups) == 1 else "control-grid"
token_input = (
f'<input type="hidden" name="token" value="{html.escape(token_param)}">'
if token_param
@@ -308,5 +309,6 @@ def render_page(actions, lang, token_param=None):
language_options=render_language_options(lang),
token_input=token_input,
global_actions=global_markup,
grid_class=html.escape(grid_class),
cards=cards_markup,
)