Skip to content
Snippets Groups Projects
Commit 06646784 authored by Nico's avatar Nico
Browse files

Limit input width just like message texts width

Fixes #70
parent febea230
No related branches found
No related tags found
1 merge request!91Limit input width just like message texts width
......@@ -89,7 +89,7 @@ class PrivateChatView(Gtk.Overlay):
def _setup_clamp(self):
clamp = Handy.Clamp.new()
clamp.set_maximum_size(800)
clamp.set_maximum_size(800) # same as in main_window.ui
clamp.set_tightening_threshold(600)
clamp.set_hexpand(True)
clamp.set_vexpand(True)
......
......@@ -114,16 +114,20 @@
<object class="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkEntry" id="chat_entry">
<object class="HdyClamp">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="placeholder_text" translatable="yes" context="Used in input field in main window">Type Message</property>
<property name="show_emoji_icon">True</property>
<property name="maximum_size">800</property> <!-- Same as in PrivateChatView -->
<property name="tightening_threshold">600</property>
<property name="hexpand">True</property>
<child>
<object class="GtkEntry" id="chat_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="placeholder_text" translatable="yes" context="Used in input field in main window">Type Message</property>
<property name="show_emoji_icon">True</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<style>
<class name="message-input-area" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment