Display verbose status as pre and smaller

This commit is contained in:
ChaoticByte 2025-02-23 17:24:32 +01:00
parent 49cfb6fe57
commit 61a1b89673
No known key found for this signature in database

View file

@ -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 != "":