From a4cbc2db86daba0d0d110439db4ddf19e653ba1a Mon Sep 17 00:00:00 2001 From: Alexej Wolff Date: Thu, 7 May 2026 00:37:54 +0200 Subject: [PATCH] fix: textarea resize vertical only, deploy script npm install --- deploy.ps1 | 2 +- src/pages/CreateStoryPage.css | 4 ++++ src/pages/CreateStoryPage.tsx | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/deploy.ps1 b/deploy.ps1 index 783b399..aa56c2e 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -16,7 +16,7 @@ if ($LASTEXITCODE -ne 0) { # Deploy to server 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 if ($LASTEXITCODE -eq 0) { diff --git a/src/pages/CreateStoryPage.css b/src/pages/CreateStoryPage.css index 9a07370..832414c 100644 --- a/src/pages/CreateStoryPage.css +++ b/src/pages/CreateStoryPage.css @@ -703,6 +703,10 @@ font-size: 0.95rem; } +.character-fields textarea { + resize: vertical; +} + .character-fields input:focus, .character-fields select:focus, .character-fields textarea:focus { diff --git a/src/pages/CreateStoryPage.tsx b/src/pages/CreateStoryPage.tsx index 4009be6..69611e6 100644 --- a/src/pages/CreateStoryPage.tsx +++ b/src/pages/CreateStoryPage.tsx @@ -453,13 +453,13 @@ export default function CreateStoryPage() { // Helper function to save characters as global NPCs const saveCharactersAsGlobalNPCs = async () => { const existingNames = savedNPCs.map((npc) => npc.name.toLowerCase()); - + for (const char of storyCharacters) { // Skip if NPC with this name already exists if (existingNames.includes(char.name.toLowerCase())) { continue; } - + // Create global NPC from story character await createNPCCharacter({ name: char.name,