From 6ff83c070853fd0eef606f570bb980437280e032 Mon Sep 17 00:00:00 2001 From: Alexander Tarasov Date: Sun, 20 Jul 2025 01:28:26 +0300 Subject: [PATCH] remove poster from ContentDialog --- web/custom_widgets/content_dialog.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/web/custom_widgets/content_dialog.py b/web/custom_widgets/content_dialog.py index 075b69d..40e7c3c 100644 --- a/web/custom_widgets/content_dialog.py +++ b/web/custom_widgets/content_dialog.py @@ -15,7 +15,7 @@ class ContentDialog(ui.dialog): with self: self.card = ui.card() self.card.classes("h-max no-shadow") - self.card.style("min-width: 40%; min-height: 60%; border-radius: 15px") + self.card.style("min-width: 20%; border-radius: 15px") with self.card: self.title_column = ui.column(wrap=False) @@ -28,14 +28,9 @@ class ContentDialog(ui.dialog): ui.html(f"{", ".join(self.content.genres)}").style("font-size: 12px") with self.card: - self.main_row = ui.row(wrap=False) - self.main_row.classes("w-full h-full") - - with self.main_row: - ui.image(source=self.content.poster_url).style("width: 50%; border-radius: 15px") - self.additional_info_column = ui.column(wrap=False) - self.additional_info_column.style("width: 50%") + self.additional_info_column.classes("w-full") + self.additional_info_column.style("width: 50%; gap: 0") with self.additional_info_column: release_date = self.content.release_date.split("-")[::-1]