Browse Source

fix: trim title on publication preview

Fixes #9
main
Kazhnuz Klappsthul 5 months ago
parent
commit
da572d47c7
3 changed files with 5 additions and 1 deletions
  1. +1
    -1
      js/trim.js
  2. +1
    -0
      scss/components/_cards.scss
  3. +3
    -0
      style.css

+ 1
- 1
js/trim.js 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)
{


+ 1
- 0
scss/components/_cards.scss 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;


+ 3
- 0
style.css 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%;


Loading…
Cancel
Save