[GH-ISSUE #1586] [Issue]: connections sidebar squishes and lags during resize — framer-motion layout animations + transition-all #823

Closed
opened 2026-10-21 05:21:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Gunterlie on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1586

Originally assigned to: @Romuromylus on GitHub.

Summary

The connections sidebar behaves incorrectly during resize — content squishes, squashes, and the resize feels sluggish. No other right-side panel has this problem.

Expected behavior

Resize feels instant and smooth, content reflows cleanly like CharactersPanel or LorebooksPanel.

Actual behavior

  • Content squishes/squashes visually while dragging the resize handle
  • Resize feels sluggish compared to all other right-side panels
Image Image

Steps to reproduce

  1. Open the Connections sidebar
  2. Drag the resize handle left and right
  3. Compare to Characters or Lorebooks sidebar — those resize cleanly

Environment

  • Marinara Engine version: Refactor
  • Install type: MacOS App from Source <---> HTTP Docker Backend on Ubuntu
  • OS + version: macOS (Tauri) + Linux server (Docker/web)

Additional context

Two root causes, both unique to ConnectionsPanel:

1. framer-motion Reorder layout animations (the squish)

ConnectionsPanel is the only right-side panel using Reorder.Group / Reorder.Item (for folder drag-to-reorder). These components track layout positions internally and fire animations on every layout change — including panel resize. Every pixel dragged triggers framer-motion measuring and re-animating all folder rows. No other panel uses Reorder.

2. transition-all on multiple elements (the sluggishness)

  • TTSConfigCard root div: transition-all causes width to animate on every resize pixel
  • ConnectionRow root div: same transition-all, one per connection, all firing simultaneously

Other panels use transition-colors or targeted transitions only.

✱Maybe Fixes that:**

  • TTSConfigCard line 676 + ConnectionRow line 98: transition-all → transition-colors
  • For the Reorder squish: either pass isResizing from AppShell to suppress animations during drag, or replace Reorder.Group/Reorder.Item with dnd-kit

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Gunterlie on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1586 Originally assigned to: @Romuromylus on GitHub. ## Summary The connections sidebar behaves incorrectly during resize — content squishes, squashes, and the resize feels sluggish. No other right-side panel has this problem. ## Expected behavior Resize feels instant and smooth, content reflows cleanly like CharactersPanel or LorebooksPanel. ## Actual behavior - Content squishes/squashes visually while dragging the resize handle - Resize feels sluggish compared to all other right-side panels <img width="336" height="551" alt="Image" src="https://github.com/user-attachments/assets/69366145-b2e0-4f46-9430-cd01b221475f" /> <img width="241" height="532" alt="Image" src="https://github.com/user-attachments/assets/04afae93-d27d-48b8-be90-9b484028e89e" /> ## Steps to reproduce 1. Open the Connections sidebar 2. Drag the resize handle left and right 3. Compare to Characters or Lorebooks sidebar — those resize cleanly ## Environment - Marinara Engine version: Refactor - Install type: MacOS App from Source <---> HTTP Docker Backend on Ubuntu - OS + version: macOS (Tauri) + Linux server (Docker/web) ## Additional context Two root causes, both unique to ConnectionsPanel: **1. framer-motion `Reorder` layout animations (the squish)** ConnectionsPanel is the only right-side panel using `Reorder.Group` / `Reorder.Item` (for folder drag-to-reorder). These components track layout positions internally and fire animations on every layout change — including panel resize. Every pixel dragged triggers framer-motion measuring and re-animating all folder rows. No other panel uses `Reorder`. **2. `transition-all` on multiple elements (the sluggishness)** - `TTSConfigCard` root div: `transition-all` causes `width` to animate on every resize pixel - `ConnectionRow` root div: same `transition-all`, one per connection, all firing simultaneously Other panels use `transition-colors` or targeted transitions only. ✱Maybe Fixes that:** - `TTSConfigCard` line 676 + `ConnectionRow` line 98: `transition-all` → `transition-colors` - For the Reorder squish: either pass `isResizing` from AppShell to suppress animations during drag, or replace `Reorder.Group`/`Reorder.Item` with `dnd-kit` ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:21:32 +07:00
Author
Owner

@Romuromylus commented on GitHub (May 30, 2026):

Fixed by #1639, merged into refactor.

<!-- gh-comment-id:4582246980 --> @Romuromylus commented on GitHub (May 30, 2026): Fixed by #1639, merged into `refactor`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#823
No description provided.