fix: textarea resize vertical only, deploy script npm install
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ if ($LASTEXITCODE -ne 0) {
|
|||||||
|
|
||||||
# Deploy to server
|
# Deploy to server
|
||||||
Write-Host "`nDeploying to server..." -ForegroundColor Yellow
|
Write-Host "`nDeploying to server..." -ForegroundColor Yellow
|
||||||
$CMD = "cd $PROJECT_PATH && git pull && npm run build && cd server && npm install && pm2 restart resekai-api"
|
$CMD = "cd $PROJECT_PATH && git pull && npm install && npm run build && cd server && npm install && pm2 restart resekai-api"
|
||||||
ssh $SERVER $CMD
|
ssh $SERVER $CMD
|
||||||
|
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
|
|||||||
@@ -703,6 +703,10 @@
|
|||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.character-fields textarea {
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
.character-fields input:focus,
|
.character-fields input:focus,
|
||||||
.character-fields select:focus,
|
.character-fields select:focus,
|
||||||
.character-fields textarea:focus {
|
.character-fields textarea:focus {
|
||||||
|
|||||||
@@ -453,13 +453,13 @@ export default function CreateStoryPage() {
|
|||||||
// Helper function to save characters as global NPCs
|
// Helper function to save characters as global NPCs
|
||||||
const saveCharactersAsGlobalNPCs = async () => {
|
const saveCharactersAsGlobalNPCs = async () => {
|
||||||
const existingNames = savedNPCs.map((npc) => npc.name.toLowerCase());
|
const existingNames = savedNPCs.map((npc) => npc.name.toLowerCase());
|
||||||
|
|
||||||
for (const char of storyCharacters) {
|
for (const char of storyCharacters) {
|
||||||
// Skip if NPC with this name already exists
|
// Skip if NPC with this name already exists
|
||||||
if (existingNames.includes(char.name.toLowerCase())) {
|
if (existingNames.includes(char.name.toLowerCase())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create global NPC from story character
|
// Create global NPC from story character
|
||||||
await createNPCCharacter({
|
await createNPCCharacter({
|
||||||
name: char.name,
|
name: char.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user