ux update

This commit is contained in:
xmcp
2019-10-03 21:44:51 +08:00
parent 99fe8bb3ef
commit a90f98d1b9
15 changed files with 120 additions and 38 deletions

View File

@@ -17,7 +17,7 @@ export function build_highlight_re(txt,split) {
return txt ? new RegExp(`(${txt.split(split).filter((x)=>!!x).map(escape_regex).join('|')})`,'g') : /^$/g;
}
function ColoredSpan(props) {
export function ColoredSpan(props) {
return (
<span className="colored-span" style={{
'--coloredspan-bgcolor-light': props.colors[0],