diff --git a/ajax/getfoldercontents.php b/ajax/getfoldercontents.php index 886b00f..6200ade 100644 --- a/ajax/getfoldercontents.php +++ b/ajax/getfoldercontents.php @@ -90,7 +90,7 @@ foreach ( $entries as $entry ) { if ( strpos($withoutext, " - ") !== false ) { $info["comname"] = substr($withoutext, strpos($withoutext, " - ") + 3); } else { - $info["comname"] = $withoutext; + $info["comname"] = (strlen($withoutext) >= ISSUELENGTHCUTOFF) ? substr($withoutext, strlen($compath)) : $withoutext; } } //$info["comname"] = substr(((strpos($entry, " - ") !== false) ? str_replace(" - ", "
", $entry) : $entry), 0, -4); diff --git a/css/comics.css b/css/comics.css index 244f1c8..0b72a57 100644 --- a/css/comics.css +++ b/css/comics.css @@ -63,13 +63,13 @@ a, a:link, a:visited, a:active { .item { cursor: pointer; width: 20vw; - height: calc(20vw * 1.5 + 2em); + height: calc(20vw * 1.5 + 2.5em); margin: 5px; border: 2px solid var(--foreground-color); padding: 2px; display: inline-block; overflow: hidden; - font-size: 2vw; + font-size: 1.3vw; } .thumbnail {