[extensions-web/feature/full-width: 1/3] extension: align description to title



commit ce777992fc2a33a1e08c6609f68ebfffe3a9bf16
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Mon Jan 16 23:28:33 2017 +0400

    extension: align description to title
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=681166

 sweettooth/static/css/sweettooth.css               |    2 ++
 .../js/templates/extensions/info_contents.mustache |    2 +-
 sweettooth/static/js/templates/templatedata.js     |    2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/static/css/sweettooth.css b/sweettooth/static/css/sweettooth.css
index 3657e35..eac563e 100644
--- a/sweettooth/static/css/sweettooth.css
+++ b/sweettooth/static/css/sweettooth.css
@@ -435,6 +435,7 @@ li.extension:last-child {
     font-size: 1.2em;
     overflow: auto;
     white-space: pre-line;
+    padding-left: 36px;
 }
 
 .extension textarea {
@@ -474,6 +475,7 @@ li.extension:last-child {
     height: 32px;
     display: inline-block;
     vertical-align: bottom;
+    margin-right: 4px;
 }
 
 .extension .screenshot label.upload {
diff --git a/sweettooth/static/js/templates/extensions/info_contents.mustache 
b/sweettooth/static/js/templates/extensions/info_contents.mustache
index 2bcb237..97b7656 100644
--- a/sweettooth/static/js/templates/extensions/info_contents.mustache
+++ b/sweettooth/static/js/templates/extensions/info_contents.mustache
@@ -5,7 +5,7 @@
 </div>
 <h3 class="extension-name">
   {{#link}}
-    <a href="{{link}}" class="title-link"> <img src="{{icon}}" class="icon"> {{name}} </a>
+    <a href="{{link}}" class="title-link"><img src="{{icon}}" class="icon">{{name}}</a>
   {{/link}}
   {{^link}}
   {{name}}
diff --git a/sweettooth/static/js/templates/templatedata.js b/sweettooth/static/js/templates/templatedata.js
index 4acc54d..be59365 100644
--- a/sweettooth/static/js/templates/templatedata.js
+++ b/sweettooth/static/js/templates/templatedata.js
@@ -6,7 +6,7 @@ define({
   "extensions/comments_list": "{{#comments}}\n  {{>extensions/comment}}\n  
<hr>\n{{/comments}}\n{{^show_all}}\n<p class=\"show-all\">Show more 
reviews</p>\n{{/show_all}}\n\n{{^comments}}\n  <p>There are no comments. Be the first!</p>\n{{/comments}}",
   "extensions/error_report_template": "What's wrong?\n\n\n\nWhat have you tried?\n\n\n\nAutomatically 
detected errors:\n\n{{#errors}}\n  {{.}}\n\n================\n{{/errors}}\n{{^errors}}\nGNOME Shell 
Extensions did not detect any errors with this extension.\n{{/errors}}\n\nVersion information:\n\n    Shell 
version: {{sv}}\n    Extension version: {{#ev}}{{ev}}{{/ev}}{{^ev}}Unknown{{/ev}}",
   "extensions/info": "<div class=\"extension\" data-uuid=\"{{uuid}}\">\n  
{{>extensions/info_contents}}\n</div>",
-  "extensions/info_contents": "<div class=\"switch\"></div>\n<div class=\"extra-buttons\">\n  <div 
class=\"upgrade-button\" title=\"Upgrade this extension\"></div>\n  <div class=\"configure-button\" 
title=\"Configure this extension\"></div>\n</div>\n<h3 class=\"extension-name\">\n  {{#link}}\n    <a 
href=\"{{link}}\" class=\"title-link\"> <img src=\"{{icon}}\" class=\"icon\"> {{name}} </a>\n  {{/link}}\n  
{{^link}}\n  {{name}}\n  {{/link}}\n</h3>\n{{#creator}}\n  <span class=\"author\">by <a 
href=\"{{creator_url}}\"> {{creator}} </a></span>\n{{/creator}}\n{{#system}}\n  <div class='system-extension' 
title='System extension should be uninstalled using package manager. See \u00abAbout\u00bb page for more 
details.'>System extension</div>\n{{/system}}\n<p 
class=\"description\">{{first_line_of_description}}</p>\n{{^system}}\n  <button class=\"uninstall\" 
title=\"Uninstall\">Uninstall</button>\n{{/system}}",
+  "extensions/info_contents": "<div class=\"switch\"></div>\n<div class=\"extra-buttons\">\n  <div 
class=\"upgrade-button\" title=\"Upgrade this extension\"></div>\n  <div class=\"configure-button\" 
title=\"Configure this extension\"></div>\n</div>\n<h3 class=\"extension-name\">\n  {{#link}}\n    <a 
href=\"{{link}}\" class=\"title-link\"><img src=\"{{icon}}\" class=\"icon\">{{name}}</a>\n  {{/link}}\n  
{{^link}}\n  {{name}}\n  {{/link}}\n</h3>\n{{#creator}}\n  <span class=\"author\">by <a 
href=\"{{creator_url}}\"> {{creator}} </a></span>\n{{/creator}}\n{{#system}}\n  <div class='system-extension' 
title='System extension should be uninstalled using package manager. See \u00abAbout\u00bb page for more 
details.'>System extension</div>\n{{/system}}\n<p 
class=\"description\">{{first_line_of_description}}</p>\n{{^system}}\n  <button class=\"uninstall\" 
title=\"Uninstall\">Uninstall</button>\n{{/system}}",
   "extensions/info_list": "<ul class=\"extensions\">\n{{#extensions}}\n  <li class=\"extension\" 
data-svm=\"{{shell_version_map}}\">\n    {{>extensions/info_contents}}\n  </li>\n{{/extensions}}\n</ul>",
   "extensions/uninstall": "You uninstalled <b>{{name}}</b>.",
   "messages/cannot_list_errors": "GNOME Shell Extensions cannot automatically detect any errors.",


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