From 61a1b89673ea093ba96fc9e5a0c00ce861e8eb7a Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Sun, 23 Feb 2025 17:24:32 +0100 Subject: [PATCH] Display verbose status as pre and smaller --- dashboard/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/ui.py b/dashboard/ui.py index e41eae2..c047b10 100644 --- a/dashboard/ui.py +++ b/dashboard/ui.py @@ -4,7 +4,7 @@ from typing import List from .system import System, SystemState -from nicegui import ui +from nicegui import ui, html def init_ui( @@ -31,7 +31,7 @@ def init_ui( if t.description != "": ui.label(t.description).classes("opacity-75") 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() if len(actions) > 0: if t.description != "" or t.state_verbose != "":