diff --git a/apps/frontend/src/pages/servers/manage/[id]/files.vue b/apps/frontend/src/pages/servers/manage/[id]/files.vue index 66ff9b5e5..07afe7d3f 100644 --- a/apps/frontend/src/pages/servers/manage/[id]/files.vue +++ b/apps/frontend/src/pages/servers/manage/[id]/files.vue @@ -773,6 +773,8 @@ const editFile = async (item: { name: string; type: string; path: string }) => { const path = `${currentPath.value}/${item.name}`.replace("//", "/"); const content = (await props.server.fs?.downloadFile(path)) as string; + window.scrollTo(0, 0); + fileContent.value = content; editingFile.value = item; isEditing.value = true;