mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-06 14:03:56 +08:00
fix(ui): pin detail modal sidebar
This commit is contained in:
+1
-1
@@ -843,7 +843,7 @@ const openDetail = async (app: App | Record<string, unknown>) => {
|
||||
|
||||
nextTick(() => {
|
||||
const modal = document.querySelector(
|
||||
'[data-app-modal="detail"] .modal-panel',
|
||||
'[data-app-modal="detail"] [data-testid="detail-scroll-content"]',
|
||||
);
|
||||
if (modal) modal.scrollTop = 0;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user