fix mobile issue

This commit is contained in:
2025-11-25 15:54:20 +02:00
parent 6183cce3ca
commit 3c5e4b438e

View File

@@ -199,7 +199,8 @@ class Home:
self.chat_header,
ft.Divider(),
ft.Container(
height=280, # chat messages area height
height=280 if self.page.width > 500 else None, # chat messages area height
expand = True if self.page.width < 500 else None,
content=self.messages_list,
),
ft.Divider(),
@@ -235,7 +236,8 @@ class Home:
)
],
width=400,
height=500
height=500 if self.page.width > 500 else None,
scroll=ft.ScrollMode.ADAPTIVE
),
# Optional: set this to True if you want click-outside to close
enable_drag=True,