[PR #12983] app/ui: prevent sidebar animation on initial load patch #12763

Open
opened 2025-11-12 17:06:17 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12983
Author: @sriharshavanga1
Created: 11/6/2025
Status: 🔄 Open

Base: mainHead: iamyoshita-patch-1


📝 Commits (2)

  • 00d56e0 app/ui: prevent sidebar animation on initial load
  • 8a4ccc9 app/ui: prevent sidebar animation on initial load

📊 Changes

1 file changed (+7 additions, -2 deletions)

View changed files

📝 app/ui/app/src/components/layout/layout.tsx (+7 -2)

📄 Description

This PR fixes https://github.com/ollama/ollama/issues/12954.

The main content area was using an unconditional transition-all class, which caused it to animate on page load.

This fix applies the existing mounted state (from the useEffect hook in SidebarLayout) to the

component, adding the transition class only after the initial render.


🔄 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/12983 **Author:** [@sriharshavanga1](https://github.com/sriharshavanga1) **Created:** 11/6/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `iamyoshita-patch-1` --- ### 📝 Commits (2) - [`00d56e0`](https://github.com/ollama/ollama/commit/00d56e0d4b5b6bf1776c9375e4461f2279cae56f) app/ui: prevent sidebar animation on initial load - [`8a4ccc9`](https://github.com/ollama/ollama/commit/8a4ccc9b8f091dc55e1575920732e1cbc9522e41) app/ui: prevent sidebar animation on initial load ### 📊 Changes **1 file changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app/src/components/layout/layout.tsx` (+7 -2) </details> ### 📄 Description This PR fixes https://github.com/ollama/ollama/issues/12954. The main content area was using an unconditional transition-all class, which caused it to animate on page load. This fix applies the existing mounted state (from the useEffect hook in SidebarLayout) to the component, adding the transition class only after the initial render. --- <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 2025-11-12 17:06:17 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#12763
No description provided.