Commit 9c0df634 authored by 吕祺's avatar 吕祺 ⛹🏽

fix css start with number

parent 952d3abe
......@@ -44,7 +44,7 @@ export default class PortfolioPage extends Component {
} else {
n = portfolio.nameEN.replace(/ |\+|\./g, '')
}
n = n.replace(/ /g, '')
n = n.replace(/^\d+/, '')
if (mounted) {
return (
<div key={key} className="portfolio-image-wrapper">
......@@ -186,7 +186,7 @@ export default class PortfolioPage extends Component {
</div>
</div>
<div className="portfolio">
{en === null || !en && (portfolio
{(en === null || !en) && (portfolio
.filter((p) => {
if (showType === 'all') return true
return p.type === showType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment