Files
pedigree-draw/src/components/Toolbar/Toolbar.module.css
gbanyan 07a4902e45
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
Add relationship child creation, auto-align, delete shortcut, and improve UX
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>
2025-12-14 22:19:13 +08:00

124 lines
1.8 KiB
CSS

.toolbar {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 15px;
background: white;
border-bottom: 1px solid #ddd;
min-height: 50px;
}
.toolGroup {
display: flex;
align-items: center;
gap: 5px;
}
.groupLabel {
font-size: 11px;
color: #888;
margin-right: 5px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.toolButton {
height: 36px;
padding: 0 10px;
border: 1px solid #ddd;
background: white;
border-radius: 4px;
cursor: pointer;
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) {
background: #f5f5f5;
border-color: #bbb;
}
.toolButton:active:not(:disabled) {
background: #eee;
}
.toolButton.active {
background: #e3f2fd;
border-color: #2196F3;
color: #2196F3;
}
.toolButton:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.divider {
width: 1px;
height: 30px;
background: #ddd;
margin: 0 5px;
}
.relationshipTool {
display: flex;
align-items: center;
gap: 10px;
padding: 5px 10px;
background: #f9f9f9;
border-radius: 4px;
}
.relationshipTool p {
margin: 0;
font-size: 13px;
color: #666;
}
.relationshipRow {
display: flex;
align-items: center;
gap: 5px;
}
.relationshipRow label {
font-size: 12px;
color: #666;
}
.relationshipRow select {
padding: 4px 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
}
.button {
padding: 6px 12px;
border: 1px solid #1976D2;
background: #1976D2;
color: white;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
}
.button:hover:not(:disabled) {
background: #1565C0;
}
.button:disabled {
opacity: 0.5;
cursor: not-allowed;
}