[PR #9097] [CLOSED] fix: textarea auto-resize in playground UX #125974

Closed
opened 2026-05-21 06:50:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/9097
Author: @brandonwatson
Created: 1/30/2025
Status: Closed

Base: devHead: fix/playground-textarea-resize


📝 Commits (1)

  • 0cdc71b fix: textarea auto-resize in playground UX

📊 Changes

2 files changed (+73 additions, -29 deletions)

View changed files

📝 src/lib/components/playground/Chat.svelte (+56 -7)
📝 src/lib/components/playground/Chat/Messages.svelte (+17 -22)

📄 Description

Changelog Entry

updates to:
/src/lib/component/playground/Chat/Messages.svelte
/src/lib/component/playground/Chat.svelte

Description

  • Implements proper height management for system instructions
  • Improves message textarea resize behavior in chat history
  • Adds afterUpdate lifecycle hook for consistent textarea sizing
  • Refactors height adjustment logic for better maintainability

This PR addresses issues with textarea height management in the playground interface:

  • System instructions now maintain proper height after collapse/expand
  • Chat messages properly resize on content updates
  • Message history maintains correct height for each entry

Testing:

  • Tested with various content lengths
  • Verified collapse/expand behavior
  • Confirmed proper height reset after content changes

Added

No new files added

Changed

Changes to class of textarea, added handlers for paste, and updated addHandler in Chat.svelte

Deprecated

None

Removed

None

Fixed

Security

Breaking Changes


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/9097 **Author:** [@brandonwatson](https://github.com/brandonwatson) **Created:** 1/30/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/playground-textarea-resize` --- ### 📝 Commits (1) - [`0cdc71b`](https://github.com/open-webui/open-webui/commit/0cdc71b505f72de927a7e0f649698dd09e9095b8) fix: textarea auto-resize in playground UX ### 📊 Changes **2 files changed** (+73 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/playground/Chat.svelte` (+56 -7) 📝 `src/lib/components/playground/Chat/Messages.svelte` (+17 -22) </details> ### 📄 Description # Changelog Entry updates to: /src/lib/component/playground/Chat/Messages.svelte /src/lib/component/playground/Chat.svelte ### Description - Implements proper height management for system instructions - Improves message textarea resize behavior in chat history - Adds afterUpdate lifecycle hook for consistent textarea sizing - Refactors height adjustment logic for better maintainability This PR addresses issues with textarea height management in the playground interface: - System instructions now maintain proper height after collapse/expand - Chat messages properly resize on content updates - Message history maintains correct height for each entry Testing: - Tested with various content lengths - Verified collapse/expand behavior - Confirmed proper height reset after content changes ### Added No new files added ### Changed Changes to class of textarea, added handlers for paste, and updated addHandler in Chat.svelte ### Deprecated None ### Removed None ### Fixed ### Security ### Breaking Changes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-21 06:50:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#125974