This commit is contained in:
Baobhan Sith
2025-04-23 18:47:48 +08:00
parent f8bf4a71e2
commit 1916f4b4d7
3 changed files with 5 additions and 6 deletions
@@ -225,7 +225,7 @@ const componentProps = computed(() => {
case 'quickCommands': case 'quickCommands':
// 这两个视图需要转发 execute-command 事件 // 这两个视图需要转发 execute-command 事件
return { return {
class: 'pane-content', class: 'flex flex-col flex-grow h-full overflow-auto', // 移除 pane-content,保留填充类
onExecuteCommand: (command: string) => emit('sendCommand', command), // 复用 sendCommand 事件 onExecuteCommand: (command: string) => emit('sendCommand', command), // 复用 sendCommand 事件
}; };
case 'dockerManager': case 'dockerManager':
@@ -568,7 +568,6 @@ onMounted(() => {
v-else v-else
:is="currentMainComponent" :is="currentMainComponent"
v-bind="componentProps" v-bind="componentProps"
class="flex-grow overflow-auto"
/> />
</template> </template>
<!-- Invalid Pane Component --> <!-- Invalid Pane Component -->
@@ -1,7 +1,7 @@
<template> <template>
<div class="flex flex-col h-full overflow-hidden bg-background p-2"> <div class="flex flex-col h-full overflow-hidden bg-background">
<!-- Container for controls and list --> <!-- Container for controls and list -->
<div class="flex flex-col flex-grow border border-border rounded-md overflow-hidden bg-background"> <div class="flex flex-col flex-grow overflow-hidden bg-background">
<!-- Controls embedded within the container --> <!-- Controls embedded within the container -->
<div class="flex items-stretch p-2 border-b border-border flex-shrink-0 gap-1 bg-header"> <div class="flex items-stretch p-2 border-b border-border flex-shrink-0 gap-1 bg-header">
<input <input
@@ -1,7 +1,7 @@
<template> <template>
<div class="flex flex-col h-full overflow-hidden bg-background p-2"> <div class="flex flex-col h-full overflow-hidden bg-background">
<!-- Container for controls and list --> <!-- Container for controls and list -->
<div class="flex flex-col flex-grow border border-border rounded-md overflow-hidden bg-background"> <div class="flex flex-col flex-grow overflow-hidden bg-background">
<!-- Controls embedded within the container --> <!-- Controls embedded within the container -->
<div class="flex items-stretch p-2 border-b border-border flex-shrink-0 gap-1 bg-header"> <div class="flex items-stretch p-2 border-b border-border flex-shrink-0 gap-1 bg-header">
<input <input