[gnome-shell/uiTweaks2: 11/11] search.js: Disable multiline descriptions



commit 71b1dc7a1930ec9fbcb8911046798bd9f88c418b
Author: raresvis <rares visalom gmail com>
Date:   Wed Jul 5 21:11:43 2017 +0300

    search.js: Disable multiline descriptions
    
    Having descriptions with multiple lines will clutter
    the view and make it more confusing for the user. Apart
    from that, it also makes the search result a lot bigger,
    potentially losing general vertical alignment.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749957

 js/ui/search.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 793920c..59bb0e2 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -129,7 +129,8 @@ const ListSearchResult = new Lang.Class({
         if (!this.metaInfo['description'] || !this._descriptionLabel || !this._searchResultsView)
             return;
 
-        
this._descriptionLabel.clutter_text.set_markup(this._searchResultsView.highlightTerms(this.metaInfo['description']));
+        descriptionText = this.metaInfo['description'].split('\n')[0];
+        
this._descriptionLabel.clutter_text.set_markup(this._searchResultsView.highlightTerms(descriptionText));
     },
 
     _onDestroy: function() {


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