[polari] chatView: Put status messages on the left



commit d714cb69da402e0fef457dda3daa897877ac06e8
Author: William Cordova <williamcrdv gmail com>
Date:   Sat Aug 28 20:05:05 2021 +0000

    chatView: Put status messages on the left
    
    Status messages have become much less distracting since we started to
    filter and compress them. With that the gap they create between regular
    messages has become the bigger issue for readability, so move status
    messages back to the left.
    
    https://gitlab.gnome.org/GNOME/polari/-/issues/178
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/223>

 src/chatView.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 09f6a364..eab68654 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -437,7 +437,6 @@ export default GObject.registerClass({
             name: 'status',
             left_margin: MARGIN,
             indent: 0,
-            justification: Gtk.Justification.RIGHT,
         }, {
             name: 'timestamp',
             left_margin: MARGIN,
@@ -1130,7 +1129,7 @@ export default GObject.registerClass({
         }
         // TODO: How do we update the arrow direction when text direction change?
         let iter = buffer.get_iter_at_mark(headerMark);
-        let tags = [this._lookupTag('status'), headerTag];
+        let tags = [this._lookupTag('gap'), this._lookupTag('status'), headerTag];
         let headerText = stats.join(', ');
         let baseDir = Pango.find_base_dir(headerText, -1);
         this._insertWithTags(iter, headerText, tags);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]