Add relationship child creation, auto-align, delete shortcut, and improve UX
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled

Features:
- Add "Add Child" buttons (Male/Female/Unknown) in RelationshipPanel
  to create children directly from a selected relationship
- Add "Auto Align" button in toolbar to reset all element positions
- Add Delete/Backspace keyboard shortcut to delete selected elements
- Add text labels to all toolbar buttons for better discoverability

Documentation:
- Update README with Node.js installation instructions for beginners
- Add npm install step for first-time setup
- Document keyboard shortcuts and relationship editing features
- Add Windows-specific instructions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gbanyan
2025-12-14 22:19:13 +08:00
parent 8b07e483d2
commit 07a4902e45
5 changed files with 212 additions and 19 deletions

View File

@@ -23,8 +23,8 @@
}
.toolButton {
width: 36px;
height: 36px;
padding: 0 10px;
border: 1px solid #ddd;
background: white;
border-radius: 4px;
@@ -32,8 +32,15 @@
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
color: #333;
transition: all 0.15s ease;
font-size: 12px;
white-space: nowrap;
}
.toolButton svg {
flex-shrink: 0;
}
.toolButton:hover:not(:disabled) {