summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-09-30 13:27:32 +0000
committerDavid Beguin <dbe@odoo.com>2019-09-30 15:54:50 +0000
commit41b2d9cc86b465bc6dd4819aab9bf1ea54c6a591 (patch)
tree3b2811f7a878bae7566594b30ca3a9b02d5b0578 /addons
parent8d359aa5a5f7402987c0bd8f6f639442f182a8cc (diff)
[FIX] livechat : use main rating image instead of white one for livechat frontend view.
As the percentage bar is translucid, white rating icon is not really easy to see. Using the main rating image - red for :(, orange for :| and green for :) - is more convenient. Also, this fixes the height of rating chart as the bottom border was not visible when 0%. Task ID: 2076656 PR #37511
Diffstat (limited to 'addons')
-rw-r--r--addons/website_livechat/views/website_livechat.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/website_livechat/views/website_livechat.xml b/addons/website_livechat/views/website_livechat.xml
index ff013dc1c44..065ec92133d 100644
--- a/addons/website_livechat/views/website_livechat.xml
+++ b/addons/website_livechat/views/website_livechat.xml
@@ -88,9 +88,9 @@
<h3>Statistics</h3>
<div class="row">
<div class="col-lg-5">
- <div class="card bg-success text-white" t-attf-style="height: #{150 + int(percentage['great'])}px;">
+ <div class="card bg-success text-white" t-attf-style="height: #{160 + int(percentage['great'])}px;">
<div class="card-body text-center">
- <img src="/rating/static/src/img/rating_10_white.png" style="height:40px" alt="Happy face"/>
+ <img src="/rating/static/src/img/rating_10.png" style="height:40px" alt="Happy face"/>
</div>
<div class="card-body text-center">
<h2 style="margin: 0">
@@ -103,9 +103,9 @@
</div>
</div>
<div class="col-lg-4">
- <div class="card bg-warning text-white" t-attf-style="height: #{150 + int(percentage['okay'])}px;">
+ <div class="card bg-warning text-white" t-attf-style="height: #{160 + int(percentage['okay'])}px;">
<div class="card-body text-center">
- <img src="/rating/static/src/img/rating_5_white.png" style="height:40px" alt="Neutral face"/>
+ <img src="/rating/static/src/img/rating_5.png" style="height:40px" alt="Neutral face"/>
</div>
<div class="card-body text-center">
<h2 style="margin: 0">
@@ -118,9 +118,9 @@
</div>
</div>
<div class="col-lg-3">
- <div class="card bg-danger text-white" t-attf-style="height: #{150 + int(percentage['bad'])}px;">
+ <div class="card bg-danger text-white" t-attf-style="height: #{160 + int(percentage['bad'])}px;">
<div class="card-body text-center">
- <img src="/rating/static/src/img/rating_1_white.png" style="height:40px" alt="Sad face"/>
+ <img src="/rating/static/src/img/rating_1.png" style="height:40px" alt="Sad face"/>
</div>
<div class="card-body text-center">
<h2 style="margin: 0">