feat: NPC system improvements - custom prompt, NSFW, full body generation

This commit is contained in:
Alexej Wolff
2026-05-05 00:11:43 +02:00
parent efd2332875
commit dad5aa47cb
11 changed files with 1860 additions and 43 deletions
+201
View File
@@ -734,6 +734,86 @@
margin-bottom: 1rem;
}
.character-content {
display: flex;
gap: 1rem;
}
.character-avatar-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.character-avatar-preview {
width: 120px;
height: 180px;
border-radius: 12px;
object-fit: cover;
object-position: top center;
border: 2px solid #667eea;
background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
background-size: 200% 100%;
animation: avatar-loading 1.5s infinite;
}
.character-avatar-preview[src] {
animation: none;
background: none;
}
@keyframes avatar-loading {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.character-avatar-placeholder {
width: 120px;
height: 180px;
border-radius: 12px;
background: #1a1a1a;
border: 2px dashed #333;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
color: #666;
}
.btn-generate-avatar {
padding: 0.4rem 0.8rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
border-radius: 8px;
color: white;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s;
}
.btn-generate-avatar:hover:not(:disabled) {
transform: scale(1.05);
box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}
.btn-generate-avatar:disabled {
opacity: 0.7;
cursor: wait;
}
.character-fields {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.character-number {
font-weight: 600;
color: #667eea;
@@ -823,3 +903,124 @@
font-size: 0.9rem;
}
}
/* Character row with two selects */
.character-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}
.character-row select {
padding: 0.5rem;
background: #0d0d0d;
border: 2px solid #333;
border-radius: 8px;
color: white;
font-size: 0.9rem;
}
/* Character buttons */
.character-buttons {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.add-btn.secondary {
background: transparent;
border: 2px solid #667eea;
color: #667eea;
}
.add-btn.secondary:hover {
background: rgba(102, 126, 234, 0.1);
}
/* NPC Selector Modal */
.npc-selector-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 1rem;
}
.npc-selector-modal {
background: #1a1a1a;
border-radius: 16px;
padding: 1.5rem;
max-width: 700px;
width: 100%;
max-height: 80vh;
overflow-y: auto;
}
.npc-selector-modal h3 {
margin: 0 0 1rem 0;
text-align: center;
}
.npc-selector-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
margin-bottom: 1rem;
}
.npc-selector-item {
background: #0d0d0d;
border: 2px solid #333;
border-radius: 12px;
padding: 0.75rem;
cursor: pointer;
transition: all 0.2s;
text-align: center;
}
.npc-selector-item:hover {
border-color: #667eea;
transform: translateY(-2px);
}
.npc-selector-item img {
width: 100%;
height: 140px;
object-fit: cover;
object-position: top center;
border-radius: 8px;
margin-bottom: 0.5rem;
}
.npc-selector-item .npc-placeholder {
width: 100%;
height: 140px;
background: #1a1a1a;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
margin-bottom: 0.5rem;
}
.npc-selector-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.npc-selector-info strong {
font-size: 0.95rem;
}
.npc-selector-info span {
font-size: 0.8rem;
color: #888;
}