mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
colorful lab nodes for all text ones
This commit is contained in:
parent
779012a418
commit
b64ec041c6
1 changed files with 1 additions and 1 deletions
|
@ -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 }}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue