1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

colorful lab nodes for all text ones

This commit is contained in:
Fedor Katurov 2021-10-07 18:25:39 +07:00
parent 779012a418
commit b64ec041c6

View file

@ -23,7 +23,7 @@ const LabNode: FC<IProps> = ({ node, isLoading, lastSeen, commentCount }) => {
[node.commented_at, lastSeen] [node.commented_at, lastSeen]
); );
const background = useColorGradientFromString(node.is_heroic ? node.title : '', 3, 2); const background = useColorGradientFromString(!node.thumbnail ? node.title : '', 3, 2);
return ( return (
<div className={classNames(styles.wrap)} style={{ background }}> <div className={classNames(styles.wrap)} style={{ background }}>