User messages are now smaller

This commit is contained in:
jeffser 2024-10-15 11:24:44 -06:00
parent 22db4a43d9
commit 0a7f7e5ac2
2 changed files with 9 additions and 3 deletions

View File

@ -66,7 +66,8 @@ class chat(Gtk.ScrolledWindow):
vexpand=True,
hexpand=True,
css_classes=["undershoot-bottom"],
name=name
name=name,
hscrollbar_policy=2
)
self.messages = {}
self.welcome_screen = None

View File

@ -469,10 +469,15 @@ class message(Gtk.Overlay):
orientation=1,
halign='fill',
css_classes=["response_message"] if self.bot else ["card", "user_message"],
spacing=10
spacing=10,
width_request=-1 if self.bot else 375
)
super().__init__(css_classes=["message"], name=message_id)
super().__init__(
css_classes=["message"],
name=message_id,
halign=0 if self.bot else 2
)
self.set_child(self.container)
def add_attachments(self, attachments:dict):