Skip to content

Commit

Permalink
feat: added image support
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Dec 6, 2024
1 parent 31e9531 commit d4e6eb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/App/ActionsToolbar/PlayerControl/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const PlayerControl = () => {

const showPlayer = (sidebarIsOpen && selectedNode?.ref_id !== playingNode?.ref_id) || (playingNode && !sidebarIsOpen)

const isMindset = window.location?.hostname === 'graphmindset.sphinx.chat' || window.location.hostname === 'localhost'
const isMindset = window.location?.hostname === 'graphmindset.sphinx.chat'

return miniPlayerIsVisible && playingNode && showPlayer && !isMindset ? (
<Wrapper onClick={openNodeDetails}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Universe/Graph/Cubes/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const TextNode = memo(({ node, hide, ignoreDistance }: Props) => {
<meshBasicMaterial color={color} opacity={0.5} transparent />
</mesh>

{node.properties?.image_url && ['Person', 'Episode'].includes(node.node_type) && texture ? (
{node.properties?.image_url && ['Person', 'Episode', 'Guest', 'Host'].includes(node.node_type) && texture ? (
<Plane args={[10 * 2, 10 * 2]} scale={2}>
<shaderMaterial
fragmentShader={`
Expand Down

0 comments on commit d4e6eb7

Please sign in to comment.