[gnome-shell] search: Disable multiline descriptions



commit 69a9c222d09a928451aec814c7fd796731494a4b
Author: Rares Visalom <rares visalom gmail com>
Date:   Sun Jul 9 19:25:49 2017 +0300

    search: 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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index dd3ea13..4b2cd52 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -125,7 +125,7 @@ const ListSearchResult = new Lang.Class({
     },
 
     _highlightTerms: function() {
-        let markup = this._resultsView.highlightTerms(this.metaInfo['description']);
+        let markup = this._resultsView.highlightTerms(this.metaInfo['description'].split('\n')[0]);
         this._descriptionLabel.clutter_text.set_markup(markup);
     },
 


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