Calculate adds sizes

Trim white-spaces for share buttons
Increase header with 1 pixel
This commit is contained in:
Jorit Tijsen
2024-04-19 15:25:00 +02:00
parent e7459cf026
commit 4db20ca296
7 changed files with 22 additions and 7 deletions

View File

@@ -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)) + '...';
}