tweak html tag

This commit is contained in:
Pig Fang 2020-04-26 11:12:10 +08:00
parent c9a8fddd57
commit 262dca0f8e
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ return [
'score_per_player' => '100',
'sign_after_zero' => 'false',
'version' => '',
'copyright_text' => '<strong>Copyright &copy; {year} <a href="{site_url}">{site_name}</a>.</strong> All rights reserved.',
'copyright_text' => '<b>Copyright &copy; {year} <a href="{site_url}">{site_name}</a>.</b> All rights reserved.',
'auto_del_invalid_texture' => 'false',
'allow_downloading_texture' => 'true',
'texture_name_regexp' => '',

View File

@ -9,7 +9,7 @@ interface Props {
unit: string
}
const InfoBox: React.FC<Props> = props => {
const InfoBox: React.FC<Props> = (props) => {
const percentage = (props.used / props.total) * 100
return (
@ -20,7 +20,7 @@ const InfoBox: React.FC<Props> = props => {
<div className="info-box-content">
<span className="info-box-text">{props.name}</span>
<span className="info-box-number">
<strong>{props.used}</strong> / {props.total} {props.unit}
<b>{props.used}</b> / {props.total} {props.unit}
</span>
<div className="progress">
<div className="progress-bar" style={{ width: `${percentage}%` }} />