minimum tag size

This commit is contained in:
Shish 2008-12-31 12:59:14 -08:00
parent 1e5b2ac6aa
commit 0b0e713aa1

View File

@ -118,7 +118,9 @@ class TagList implements Extension {
$h_tag = html_escape($row['tag']); $h_tag = html_escape($row['tag']);
$size = $row['scaled']; $size = $row['scaled'];
$link = $this->tag_link($row['tag']); $link = $this->tag_link($row['tag']);
$html .= "&nbsp;<a style='font-size: ${size}em' href='$link'>$h_tag</a>&nbsp;\n"; if($size<0.5) $size = 0.5;
$h_tag_no_underscores = str_replace("_", " ", $h_tag);
$html .= "&nbsp;<a style='font-size: ${size}em' href='$link'>$h_tag_no_underscores</a>&nbsp;\n";
} }
return $html; return $html;
} }