Browse Source
Merge pull request #10615 from abpframework/cms-kit/reaction-popover-fix
Cms Kit - Reaction Popover Fix
pull/10620/head
albert
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
14 additions and
6 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/ReactionSelection/default.css
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/ReactionSelection/default.js
|
|
@ -1,11 +1,13 @@ |
|
|
.cms-reaction-select-icon, .cms-reaction-icon { |
|
|
.cms-reaction-select-icon, .cms-reaction-icon { |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
} |
|
|
} |
|
|
.cms-reaction-selection-popover-content i.fa-2x{ |
|
|
|
|
|
|
|
|
.cms-reaction-selection-popover-content i.fa-2x { |
|
|
width: 25%; |
|
|
width: 25%; |
|
|
display: inline-block; |
|
|
display: inline-block; |
|
|
float: left; |
|
|
float: left; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.reaction-in-comment span.area-title { |
|
|
.reaction-in-comment span.area-title { |
|
|
display: none; |
|
|
display: none; |
|
|
} |
|
|
} |
|
|
@ -15,6 +17,11 @@ span.area-title { |
|
|
padding: 3px; |
|
|
padding: 3px; |
|
|
display: block; |
|
|
display: block; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.popover { |
|
|
.popover { |
|
|
min-width: 276px; |
|
|
min-width: 276px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.cms-reaction-icon-selected { |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
} |
|
|
|
|
|
@ -1,12 +1,13 @@ |
|
|
(function ($) { |
|
|
$(document).ready(function () { |
|
|
|
|
|
|
|
|
var l = abp.localization.getResource('CmsKit'); |
|
|
|
|
|
|
|
|
|
|
|
var myDefaultAllowList = $.fn.tooltip.Constructor.Default.allowList; |
|
|
var myDefaultAllowList = $.fn.tooltip.Constructor.Default.allowList; |
|
|
|
|
|
|
|
|
if (myDefaultAllowList.span.indexOf('data-reaction-name') < 0) { |
|
|
if (myDefaultAllowList.span.indexOf('data-reaction-name') < 0) { |
|
|
myDefaultAllowList.span.push('data-reaction-name'); |
|
|
myDefaultAllowList.span.push('data-reaction-name'); |
|
|
} |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
(function ($) { |
|
|
|
|
|
var l = abp.localization.getResource('CmsKit'); |
|
|
|
|
|
|
|
|
abp.widgets.CmsReactionSelection = function ($widget) { |
|
|
abp.widgets.CmsReactionSelection = function ($widget) { |
|
|
var widgetManager = $widget.data('abp-widget-manager'); |
|
|
var widgetManager = $widget.data('abp-widget-manager'); |
|
|
|