Development

This commit is contained in:
Matthew Grotke 2026-05-24 03:56:22 -04:00
parent 375e8cf8b6
commit 6298f27d29
2 changed files with 4 additions and 4 deletions

View file

@ -1078,8 +1078,10 @@ def _render_item(item, tokens, inherited_req=None):
return '<span style="margin-left:auto"></span>'
if t == 'button_row':
justify = item.get('justify', '')
style_attr = f' style="justify-content:{e(justify)}"' if justify else ''
inner = render_items(item.get('items', []), tokens, req)
return f'<div class="button-row">{inner}</div>'
return f'<div class="button-row"{style_attr}>{inner}</div>'
if t == 'table':
return _render_table(item, tokens, req)

View file

@ -523,15 +523,13 @@
},
{
"type": "button_row",
"justify": "space-between",
"items": [
{
"type": "button_ghost",
"action": "/action/download_ddns_log",
"text": "Download Log"
},
{
"type": "spacer"
},
{
"type": "button_danger",
"action": "/action/clear_ddns_log",