Reduce font size and do better trimming when name too long to fit
This commit is contained in:
parent
50259400b4
commit
93235c92ab
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user