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
This commit is contained in:
t0ng7u
2025-08-10 13:41:19 +08:00
parent 54f470bc46
commit c79b6cea32

View File

@@ -233,7 +233,9 @@ export const useModelPricingData = () => {
const closeModelDetail = () => {
setShowModelDetail(false);
setSelectedModel(null);
setTimeout(() => {
setSelectedModel(null);
}, 300);
};
useEffect(() => {