From 190bcb5e9a4b0ee07cb6a50cb2076b79ba5ff110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arda=20=C3=87ebi?= Date: Wed, 22 Aug 2018 00:16:02 +0300 Subject: [PATCH] Add descriptions and optimize extensions page (#1496) --- js/src/admin/components/ExtensionsPage.js | 13 ++++--- less/admin/ExtensionsPage.less | 47 +++++++++++++++-------- 2 files changed, 39 insertions(+), 21 deletions(-) diff --git a/js/src/admin/components/ExtensionsPage.js b/js/src/admin/components/ExtensionsPage.js index e9692f067..3aeae2088 100644 --- a/js/src/admin/components/ExtensionsPage.js +++ b/js/src/admin/components/ExtensionsPage.js @@ -46,11 +46,14 @@ export default class ExtensionsPage extends Page { {controls} ) : ''} - -
{extension.version}
+
++ ++
{extension.version}
++
{extension.description}
++
; })} diff --git a/less/admin/ExtensionsPage.less b/less/admin/ExtensionsPage.less index 02b74b473..53eb79f97 100644 --- a/less/admin/ExtensionsPage.less +++ b/less/admin/ExtensionsPage.less @@ -24,9 +24,10 @@ .clearfix(); > li { - float: left; text-align: left; position: relative; + border-radius: 4px; + transition: background .2s; } } .ExtensionListItem.disabled { @@ -39,45 +40,59 @@ } } .ExtensionListItem { - width: 120px; - height: 160px; - margin-right: 15px; - margin-bottom: 15px; + padding: 10px; } -.ExtensionListItem-title { - display: block; - font-size: 13px; - font-weight: bold; - margin: 8px 0 0; - white-space: nowrap; +.ExtensionListItem:hover { + background: @control-bg; +} +.ExtensionListItem-content { + padding: 0 50px; + min-height: 40px; +} +.ExtensionListItem-main { overflow: hidden; text-overflow: ellipsis; +} +.ExtensionListItem-title { + display: inline-block; + font-size: 13px; + font-weight: bold; + white-space: nowrap; cursor: pointer; + padding-right: 10px; } .ExtensionListItem-version { color: @muted-more-color; font-size: 11px; font-weight: normal; + display: inline-flex; } .ExtensionListItem-controls { float: right; display: none; - margin-right: -5px; + margin-right: -50px; margin-top: 1px; .ExtensionListItem:hover &, &.open { display: block; } } +.ExtensionListItem-description { + font-size: 11px; + font-weight: normal; + text-align: justify; +} .ExtensionIcon { - width: 120px; - height: 120px; + width: 40px; + height: 40px; background: @control-bg; color: @control-color; border-radius: 6px; display: inline-block; - font-size: 60px; - line-height: 120px; + font-size: 30px; + line-height: 40px; text-align: center; + margin-left: -50px; + position: absolute; }