Made messages more compact
This commit is contained in:
parent
70e4d8f407
commit
22db4a43d9
@ -230,7 +230,8 @@ class attachment_container(Gtk.ScrolledWindow):
|
|||||||
|
|
||||||
self.container = Gtk.Box(
|
self.container = Gtk.Box(
|
||||||
orientation=0,
|
orientation=0,
|
||||||
spacing=12
|
spacing=10,
|
||||||
|
valign=1
|
||||||
)
|
)
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
@ -238,7 +239,8 @@ class attachment_container(Gtk.ScrolledWindow):
|
|||||||
margin_start=10,
|
margin_start=10,
|
||||||
margin_end=10,
|
margin_end=10,
|
||||||
hexpand=True,
|
hexpand=True,
|
||||||
child=self.container
|
child=self.container,
|
||||||
|
vscrollbar_policy=2
|
||||||
)
|
)
|
||||||
|
|
||||||
def add_file(self, file:attachment):
|
def add_file(self, file:attachment):
|
||||||
@ -467,7 +469,7 @@ class message(Gtk.Overlay):
|
|||||||
orientation=1,
|
orientation=1,
|
||||||
halign='fill',
|
halign='fill',
|
||||||
css_classes=["response_message"] if self.bot else ["card", "user_message"],
|
css_classes=["response_message"] if self.bot else ["card", "user_message"],
|
||||||
spacing=12
|
spacing=10
|
||||||
)
|
)
|
||||||
|
|
||||||
super().__init__(css_classes=["message"], name=message_id)
|
super().__init__(css_classes=["message"], name=message_id)
|
||||||
@ -619,7 +621,7 @@ class message(Gtk.Overlay):
|
|||||||
if self.spinner:
|
if self.spinner:
|
||||||
self.container.remove(self.spinner)
|
self.container.remove(self.spinner)
|
||||||
self.spinner = None
|
self.spinner = None
|
||||||
self.spinner = Gtk.Spinner(spinning=True, margin_top=12, margin_bottom=12, hexpand=True)
|
self.spinner = Gtk.Spinner(spinning=True, margin_top=10, margin_bottom=10, hexpand=True)
|
||||||
self.container.append(self.spinner)
|
self.container.append(self.spinner)
|
||||||
self.container.append(text_b)
|
self.container.append(text_b)
|
||||||
self.container.queue_draw()
|
self.container.queue_draw()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user