fix: trim title on publication preview

Fixes #9
This commit is contained in:
Kazhnuz Klappsthul 2021-01-03 10:15:40 +01:00
parent 6cefb84c91
commit da572d47c7
3 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
var length = 35;
$(function(){
$(".trim-that a, limit").each(function(i){
$(".trim-that a, .limit").each(function(i){
len=$(this).text().length;
if(len>length)
{

View File

@ -28,6 +28,7 @@ $card-smallpad: $lineheight_half;
padding-bottom: $size/2!important;
margin-bottom:$lineheight_half;
line-height:$lineheight;
white-space: nowrap;
position:relative;
left: -$size*1.25;

View File

@ -839,6 +839,7 @@ ul.social {
padding-bottom: 0.75rem !important;
margin-bottom: 0.75rem;
line-height: 1.5rem;
white-space: nowrap;
position: relative;
left: -1.875rem;
width: 95%;
@ -987,6 +988,7 @@ ul.card-list, .card > ul {
padding-bottom: 0.75rem !important;
margin-bottom: 0.75rem;
line-height: 1.5rem;
white-space: nowrap;
position: relative;
left: -1.875rem;
width: 95%;
@ -1774,6 +1776,7 @@ ul.breadcrumb, ol.breadcrumb, .breadcrumb {
padding-bottom: 0.375rem !important;
margin-bottom: 0.75rem;
line-height: 1.5rem;
white-space: nowrap;
position: relative;
left: -0.9375rem;
width: 95%;