[PR #14507] fix(app): remove sidebar open animation on initial load #45954

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14507
Author: @Jah-yee
Created: 2/28/2026
Status: 🔄 Open

Base: mainHead: sidebar-fix


📝 Commits (1)

  • c8fbaa9 fix(app): remove sidebar open animation on initial load

📊 Changes

1 file changed (+14 additions, -4 deletions)

View changed files

📝 app/ui/app/src/components/layout/layout.tsx (+14 -4)

📄 Description

Description

When the Ollama app loads with the sidebar set to open (from previously saved settings), the sidebar animates open instead of appearing directly. This is a UX issue where users expect the sidebar to appear immediately when it should be open.

Changes

  1. Added hasAnimated state tracking to track when the sidebar first opens
  2. Only applies width transition after the first open action, not on initial load
  3. Waits for settings to load before rendering sidebar to prevent flash

Fixes #12954


🔄 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/14507 **Author:** [@Jah-yee](https://github.com/Jah-yee) **Created:** 2/28/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `sidebar-fix` --- ### 📝 Commits (1) - [`c8fbaa9`](https://github.com/ollama/ollama/commit/c8fbaa9e5be988741138b0eeda781df56e5181f4) fix(app): remove sidebar open animation on initial load ### 📊 Changes **1 file changed** (+14 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app/src/components/layout/layout.tsx` (+14 -4) </details> ### 📄 Description ## Description When the Ollama app loads with the sidebar set to open (from previously saved settings), the sidebar animates open instead of appearing directly. This is a UX issue where users expect the sidebar to appear immediately when it should be open. ## Changes 1. Added `hasAnimated` state tracking to track when the sidebar first opens 2. Only applies width transition after the first open action, not on initial load 3. Waits for settings to load before rendering sidebar to prevent flash Fixes #12954 --- <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:32:47 -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#45954