From 90fc64321a71ff59186dfd0d3ff8a38259b21c0a Mon Sep 17 00:00:00 2001 From: Kautilya Tripathi Date: Fri, 22 Mar 2019 04:30:25 +0530 Subject: [PATCH] [BUG] Icon Fixed for Knowledge base on Livechat (#13806) * Fixed #13797 * Logo Fix --- app/livechat/client/ui.js | 2 +- app/ui-master/public/README.md | 16 ++++++++++------ app/ui-master/public/icons/book.svg | 3 +++ private/public/icons.svg | 7 +++++-- public/public/icons.html | 10 ++++++++-- 5 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 app/ui-master/public/icons/book.svg diff --git a/app/livechat/client/ui.js b/app/livechat/client/ui.js index 1e206e1af4d..4ea3d4ee5df 100644 --- a/app/livechat/client/ui.js +++ b/app/livechat/client/ui.js @@ -38,7 +38,7 @@ TabBar.addButton({ groups: ['live'], id: 'external-search', i18nTitle: 'Knowledge_Base', - icon: 'lightbulb', + icon: 'book', template: 'externalSearch', order: 10, }); diff --git a/app/ui-master/public/README.md b/app/ui-master/public/README.md index fdb77b13ca3..660c3f89df2 100644 --- a/app/ui-master/public/README.md +++ b/app/ui-master/public/README.md @@ -1,13 +1,17 @@ -HOW INSERT A NEW ICON +## HOW INSERT A NEW ICON paste your icon on `./icons` folder -run +run below commands inside `app/ui-master/public` directory -```` +```js node generateSprite.js node generateHTML.js - -git add icon.html icons icons.svg -.... ``` + + +After that 2 new files named `icons.html` and `icons.svg` will be generated. You need to cut and replace these two files to following locations. + +- icons.html to `public/public/icons.html` + +- icons.svg to `private/public/icons.svg` diff --git a/app/ui-master/public/icons/book.svg b/app/ui-master/public/icons/book.svg new file mode 100644 index 00000000000..134f74c30ae --- /dev/null +++ b/app/ui-master/public/icons/book.svg @@ -0,0 +1,3 @@ + + + diff --git a/private/public/icons.svg b/private/public/icons.svg index 254c9aba95b..040fac98979 100644 --- a/private/public/icons.svg +++ b/private/public/icons.svg @@ -23,6 +23,9 @@ + + + @@ -317,8 +320,8 @@ - - + + diff --git a/public/public/icons.html b/public/public/icons.html index cce51881fcd..a7f74b2671f 100644 --- a/public/public/icons.html +++ b/public/public/icons.html @@ -22,7 +22,7 @@ height: 20px; color: blue; } -
+
@@ -47,6 +47,9 @@ + + + @@ -341,6 +344,9 @@ + + + @@ -377,4 +383,4 @@ -
\ No newline at end of file +