[PR #14826] app: avoid initial sidebar animation #46108

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14826
Author: @atulvjd
Created: 3/13/2026
Status: 🔄 Open

Base: mainHead: fix/sidebar-no-initial-animation


📝 Commits (1)

  • 5be12cb app: avoid initial sidebar animation

📊 Changes

2 files changed (+43 additions, -10 deletions)

View changed files

📝 app/ui/app/src/components/layout/layout.tsx (+40 -8)
📝 app/ui/app/src/hooks/useSettings.ts (+3 -2)

📄 Description

This fixes a small UI issue where the sidebar would
animate into its saved open or closed state when the
page first loaded.

The fix keeps transitions off until settings have
finished loading and the first frame has rendered.
That way the sidebar shows up in the correct
persisted state immediately, and the animation only
happens when the user actually toggles it.

I also ran npm run build successfully. npm run lint
still fails, but those errors are from existing
unrelated issues elsewhere in the app.


🔄 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/14826 **Author:** [@atulvjd](https://github.com/atulvjd) **Created:** 3/13/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/sidebar-no-initial-animation` --- ### 📝 Commits (1) - [`5be12cb`](https://github.com/ollama/ollama/commit/5be12cb8d3935d3fc636f219f594eb3db8d104db) app: avoid initial sidebar animation ### 📊 Changes **2 files changed** (+43 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app/src/components/layout/layout.tsx` (+40 -8) 📝 `app/ui/app/src/hooks/useSettings.ts` (+3 -2) </details> ### 📄 Description This fixes a small UI issue where the sidebar would animate into its saved open or closed state when the page first loaded. The fix keeps transitions off until settings have finished loading and the first frame has rendered. That way the sidebar shows up in the correct persisted state immediately, and the animation only happens when the user actually toggles it. I also ran npm run build successfully. npm run lint still fails, but those errors are from existing unrelated issues elsewhere in the app. --- <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:38:31 -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#46108