Display verbose status as pre and smaller
This commit is contained in:
parent
49cfb6fe57
commit
61a1b89673
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
from .system import System, SystemState
|
from .system import System, SystemState
|
||||||
|
|
||||||
from nicegui import ui
|
from nicegui import ui, html
|
||||||
|
|
||||||
|
|
||||||
def init_ui(
|
def init_ui(
|
||||||
|
@ -31,7 +31,7 @@ def init_ui(
|
||||||
if t.description != "":
|
if t.description != "":
|
||||||
ui.label(t.description).classes("opacity-75")
|
ui.label(t.description).classes("opacity-75")
|
||||||
if t.state_verbose != "":
|
if t.state_verbose != "":
|
||||||
ui.label(t.state_verbose).classes("opacity-50")
|
html.pre(t.state_verbose).classes("opacity-50 text-xs")
|
||||||
actions = t.get_actions()
|
actions = t.get_actions()
|
||||||
if len(actions) > 0:
|
if len(actions) > 0:
|
||||||
if t.description != "" or t.state_verbose != "":
|
if t.description != "" or t.state_verbose != "":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue