Commit c79b6cea by t0ng7u

fix: prevent model name flicker when closing SideSheet

- Delay clearing selectedModel until SideSheet close animation completes
- Prevents brief display of 'AI/Unknown Model' text during closing transition
- Improves user experience by eliminating visual flicker
- Uses 300ms timeout matching Semi UI default animation duration
parent 54f470bc
...@@ -233,7 +233,9 @@ export const useModelPricingData = () => { ...@@ -233,7 +233,9 @@ export const useModelPricingData = () => {
const closeModelDetail = () => { const closeModelDetail = () => {
setShowModelDetail(false); setShowModelDetail(false);
setSelectedModel(null); setTimeout(() => {
setSelectedModel(null);
}, 300);
}; };
useEffect(() => { useEffect(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment