diff --git a/docker/routlin-dash/app/view_page.py b/docker/routlin-dash/app/view_page.py index 453fdd9..45d7acc 100644 --- a/docker/routlin-dash/app/view_page.py +++ b/docker/routlin-dash/app/view_page.py @@ -1078,8 +1078,10 @@ def _render_item(item, tokens, inherited_req=None): return '' 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'
' + return f'' if t == 'table': return _render_table(item, tokens, req) diff --git a/docker/routlin-dash/data/page_content.json b/docker/routlin-dash/data/page_content.json index 1a3573d..b834740 100644 --- a/docker/routlin-dash/data/page_content.json +++ b/docker/routlin-dash/data/page_content.json @@ -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",