From af06683460037e7145219c16331f31178fc6ae52 Mon Sep 17 00:00:00 2001 From: Alexander Tarasov Date: Mon, 21 Jul 2025 05:46:42 +0300 Subject: [PATCH] improve /rooms page --- web/pages/all_rooms.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/pages/all_rooms.py b/web/pages/all_rooms.py index 14e2d45..722633c 100644 --- a/web/pages/all_rooms.py +++ b/web/pages/all_rooms.py @@ -23,13 +23,14 @@ async def page(): main_row = ui.row().classes("w-full") for room in rooms: - with main_row, ui.link(target=f"/room/{room.uid}"), ui.card().style("border-radius: 15px"): + with (main_row, ui.link(target=f"/room/{room.uid}").style("text-decoration: none"), + ui.card().classes("no-shadow").style("border-radius: 15px;")): content = globals.MOVIES_DATABASE.by_tmdb_id[room.tmdb_id] with ui.row(wrap=False): - ui.image(content.poster_url).style("width: 20%") + ui.image(content.poster_url).style("width: 100px; border-radius: 15px") - with ui.column(wrap=False).classes("").style("gap: 0px"): + with ui.column(wrap=False).style("gap: 0px;"): ui.html(f"{room.uid}") ui.html(f"{content.title}")