[PR #14354] fix: disable sidebar opening animation on initial load #45885

Open
opened 2026-04-25 01:29:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14354
Author: @agent-steven
Created: 2/21/2026
Status: 🔄 Open

Base: mainHead: fix/sidebar-animation-12954


📝 Commits (1)

  • 9719cd0 fix: disable sidebar opening animation on initial load (#12954)

📊 Changes

1 file changed (+11 additions, -5 deletions)

View changed files

📝 app/ui/app/src/components/layout/layout.tsx (+11 -5)

📄 Description

Description

Fixes #12954

Removes the sidebar opening animation on initial page load, so the sidebar appears instantly in its default open state instead of animating from closed to open.

Changes

  • Added isInitialLoad state to track first render
  • Conditionally apply transition classes only after initial mount
  • Sidebar now appears immediately without animation on app load

Demo

Before (main branch):
Sidebar animates open on page load

After (this PR):
Sidebar appears instantly

Testing

npm run dev
# Open http://localhost:5173
# Reload page (F5) multiple times
# Observe: sidebar appears immediately without animation

Tested in Chrome, Firefox.


🔄 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/ollama/ollama/pull/14354 **Author:** [@agent-steven](https://github.com/agent-steven) **Created:** 2/21/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/sidebar-animation-12954` --- ### 📝 Commits (1) - [`9719cd0`](https://github.com/ollama/ollama/commit/9719cd0eb379bffdc580d23b5e95192b41a532a7) fix: disable sidebar opening animation on initial load (#12954) ### 📊 Changes **1 file changed** (+11 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app/src/components/layout/layout.tsx` (+11 -5) </details> ### 📄 Description ## Description Fixes #12954 Removes the sidebar opening animation on initial page load, so the sidebar appears instantly in its default open state instead of animating from closed to open. ## Changes - Added `isInitialLoad` state to track first render - Conditionally apply transition classes only after initial mount - Sidebar now appears immediately without animation on app load ## Demo **Before (main branch):** Sidebar animates open on page load **After (this PR):** Sidebar appears instantly ## Testing ```bash npm run dev # Open http://localhost:5173 # Reload page (F5) multiple times # Observe: sidebar appears immediately without animation ``` Tested in Chrome, Firefox. --- <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-04-25 01:29:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#45885