Compare commits

..

2 Commits

Author SHA1 Message Date
d55e58d099 Reformat
Took 18 minutes
2025-04-17 13:08:27 +02:00
006b648dd0 Update width for relationship edges
Took 6 minutes
2025-04-16 16:18:24 +02:00
2 changed files with 2 additions and 7 deletions

View File

@ -376,7 +376,7 @@ const FriendshipNetwork: React.FC = () => {
// Create edges
const graphEdges = relationships.map(rel => {
const color = RELATIONSHIPS[rel.type as RELATIONSHIP_TYPES]?.color || RELATIONSHIPS.custom.color;
const width = rel.type === 'partner' ? 4 : rel.type === 'familie' ? 3 : 2;
const width = rel.type === 'partner' ? 4 : rel.type === 'family' ? 3 : rel.type === 'acquaintance' ? 2 : 1;
// Highlight edges connected to selected node
const isHighlighted = selectedPersonId && settings.highlightConnections && (rel.source === selectedPersonId || rel.target === selectedPersonId);

View File

@ -1,11 +1,6 @@
import { useCallback, useEffect, useRef, useState } from 'react';
import { addPerson, getPeople, Person, removePerson, updatePerson } from '../api/people';
import {
addRelationship,
getRelationships,
removeRelationship,
updateRelationship,
} from '../api/relationships';
import { addRelationship, getRelationships, removeRelationship, updateRelationship } from '../api/relationships';
import { Relationship } from '../interfaces/IRelationship';
import { RELATIONSHIP_TYPES } from '../types/RelationShipTypes';