fix: trim title on publication preview

Fixes #9
This commit is contained in:
Kazhnuz 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; var length = 35;
$(function(){ $(function(){
$(".trim-that a, limit").each(function(i){ $(".trim-that a, .limit").each(function(i){
len=$(this).text().length; len=$(this).text().length;
if(len>length) if(len>length)
{ {

View file

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

View file

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