From 268efcccdd2df66762d116d01ad62e7641a503c6 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Thu, 3 Aug 2023 17:17:09 +0200 Subject: [PATCH] FIX: Poll breakdown regressions (#22957) Some related to the modal api change, some due to chart.js updates --- .../discourse/app/components/d-modal.hbs | 4 +-- .../components/modal/poll-breakdown.hbs | 6 ++-- .../components/poll-breakdown-chart.js | 34 ++++++------------- .../components/poll-breakdown-option.js | 10 ------ .../stylesheets/common/poll-breakdown.scss | 4 +-- 5 files changed, 17 insertions(+), 41 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/d-modal.hbs b/app/assets/javascripts/discourse/app/components/d-modal.hbs index 467813988db..333e88b20d5 100644 --- a/app/assets/javascripts/discourse/app/components/d-modal.hbs +++ b/app/assets/javascripts/discourse/app/components/d-modal.hbs @@ -55,9 +55,9 @@ {{/if}} {{/if}} - - {{yield to="headerBelowTitle"}} + + {{yield to="headerBelowTitle"}} {{/if}} diff --git a/plugins/poll/assets/javascripts/discourse/components/modal/poll-breakdown.hbs b/plugins/poll/assets/javascripts/discourse/components/modal/poll-breakdown.hbs index 697922c1dce..5f38a458782 100644 --- a/plugins/poll/assets/javascripts/discourse/components/modal/poll-breakdown.hbs +++ b/plugins/poll/assets/javascripts/discourse/components/modal/poll-breakdown.hbs @@ -2,21 +2,21 @@ <:headerBelowTitle>