Development
This commit is contained in:
parent
375e8cf8b6
commit
6298f27d29
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue