Reduce font size and do better trimming when name too long to fit

This commit is contained in:
Junior 2026-11-21 15:00:23 -05:00
parent 50259400b4
commit 93235c92ab
2 changed files with 3 additions and 3 deletions

View File

@ -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(" - ", "<br />", $entry) : $entry), 0, -4);

View File

@ -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 {