Calculate adds sizes
Trim white-spaces for share buttons Increase header with 1 pixel
This commit is contained in:
2
resources/assets/js/functions/share.js
vendored
2
resources/assets/js/functions/share.js
vendored
@@ -26,7 +26,7 @@
|
||||
if (type !== undefined) {
|
||||
var extra = '';
|
||||
if (type.textOption) {
|
||||
var text = $('.' + options.excerptClass).text();
|
||||
var text = $('.' + options.excerptClass).text().trim();
|
||||
if (text.length + location.href.length > 278) {
|
||||
text = text.substring(0, 278 - (location.href.length + 3)) + '...';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user