Small UI Improvement

This commit is contained in:
David Rodenkirchen
2026-05-27 23:08:45 +02:00
parent ecc3fb35c3
commit fa02f39d65
+5 -2
View File
@@ -5,7 +5,7 @@ from functools import partial
from typing import Optional from typing import Optional
from decimal import Decimal from decimal import Decimal
from rio import Component, Column, Row, Text, Spacer, page, Rectangle, TextInput, GuardEvent, Button, TextInputChangeEvent, NumberInput from rio import Component, Column, Row, Text, Spacer, page, Rectangle, TextInput, GuardEvent, Button, TextInputChangeEvent, NumberInput, IconButton
from rio.event import on_populate from rio.event import on_populate
from elm.types import UserSession, User, Transaction from elm.types import UserSession, User, Transaction
@@ -185,7 +185,10 @@ class UserAdminPage(Component):
content=Column( content=Column(
Rectangle( Rectangle(
content=Rectangle( content=Rectangle(
content=Text(f"Nutzer bearbeiten{': ' if self.active_user else ''}{self.active_user.user_name if self.active_user else ''}", margin=0.5, selectable=False, overflow="wrap"), content=Row(
Text(f"Nutzer bearbeiten{': ' if self.active_user else ''}{self.active_user.user_name if self.active_user else ''}", margin=0.5, selectable=False, overflow="wrap", grow_x=True),
IconButton("material/cancel", min_size=1.5, color="primary", margin_right=1, on_press=lambda: self.__setattr__("active_user", None)),
),
fill=self.session.theme.header_box_background_color, fill=self.session.theme.header_box_background_color,
margin=0.4 margin=0.4
), ),