chore: adjust 2k+ editor hight
This commit is contained in:
@@ -171,8 +171,8 @@ onMounted(() => {
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Page View Container -->
|
<!-- Page View Container -->
|
||||||
<div class="flex-1 overflow-auto relative bg-background/50">
|
<div class="flex-1 relative bg-background/50 flex flex-col overflow-hidden">
|
||||||
<div class="p-4 lg:p-6 mx-auto">
|
<div class="flex-1 p-4 lg:p-6 mx-auto w-full overflow-y-auto custom-scrollbar flex flex-col">
|
||||||
<RouterView />
|
<RouterView />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -437,7 +437,7 @@ onUnmounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col lg:flex-row h-[calc(100vh-100px)] gap-2">
|
<div class="flex-1 flex flex-col lg:flex-row h-0 lg:h-full gap-3 min-h-0 overflow-hidden">
|
||||||
<FileSidebar
|
<FileSidebar
|
||||||
:file-tree="fileTree"
|
:file-tree="fileTree"
|
||||||
:expanded-dirs="expandedDirs"
|
:expanded-dirs="expandedDirs"
|
||||||
@@ -445,17 +445,17 @@ onUnmounted(() => {
|
|||||||
:is-refreshing="isRefreshing"
|
:is-refreshing="isRefreshing"
|
||||||
@refresh="loadTree"
|
@refresh="loadTree"
|
||||||
@select="handleSelect"
|
@select="handleSelect"
|
||||||
@delete="confirm => dialogsRef?.openDelete(confirm)"
|
@delete="(path: string) => dialogsRef?.openDelete(path)"
|
||||||
@create="parent => dialogsRef?.openCreate(parent)"
|
@create="(parent: string) => dialogsRef?.openCreate(parent)"
|
||||||
@download="handleDownload"
|
@download="handleDownload"
|
||||||
@move="handleMove"
|
@move="handleMove"
|
||||||
@rename="path => dialogsRef?.openRename(path)"
|
@rename="(path: string) => dialogsRef?.openRename(path)"
|
||||||
@duplicate="handleCopyFile"
|
@duplicate="handleCopyFile"
|
||||||
@upload-archive="handleArchiveUpload"
|
@upload-archive="handleArchiveUpload"
|
||||||
@upload-files="handleFilesUpload"
|
@upload-files="handleFilesUpload"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="flex-1 min-h-[300px] border rounded-md flex flex-col overflow-hidden">
|
<div class="flex-1 min-w-0 min-h-[300px] border rounded-md flex flex-col overflow-hidden">
|
||||||
<div class="flex items-center justify-between p-2 border-b gap-2">
|
<div class="flex items-center justify-between p-2 border-b gap-2">
|
||||||
<span class="text-xs font-medium truncate flex-1 min-w-0">
|
<span class="text-xs font-medium truncate flex-1 min-w-0">
|
||||||
{{ selectedPath || '选择文件或文件夹进行操作' }}
|
{{ selectedPath || '选择文件或文件夹进行操作' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user