@@ -69,26 +69,26 @@ function formatSize(bytes: number): string {
6969 </div >
7070 </div >
7171
72- <div class =" min-h-60 flex-1 overflow-hidden " >
72+ <div class =" min-h-60 grid place-items-center " >
7373 <div
7474 v-if =" runnerStore.isLoading"
75- class =" h-full flex flex-col items-center justify -center gap-3 text-muted-foreground"
75+ class =" flex flex-col items-center gap-3 text-muted-foreground"
7676 >
7777 <Loader2 class="h-8 w-8 animate-spin" />
7878 <span class =" text-sm" >请求中...</span >
7979 </div >
8080
8181 <div
8282 v-else-if =" runnerStore.status === 'error'"
83- class =" h-full flex flex-col items-center justify -center gap-3 text-destructive"
83+ class =" flex flex-col items-center gap-3 text-destructive"
8484 >
8585 <AlertCircle class="h-8 w-8" />
8686 <span class =" text-sm" >{{ runnerStore.errorMessage ?? '请求失败' }}</span >
8787 </div >
8888
8989 <div
9090 v-else-if =" runnerStore.status === 'idle'"
91- class =" h-full flex flex-col items-center justify -center gap-3 text-muted-foreground"
91+ class =" flex flex-col items-center gap-3 text-muted-foreground"
9292 >
9393 <Code class="h-8 w-8" />
9494 <span class =" text-sm" >点击「发送请求」获取响应</span >
@@ -97,7 +97,7 @@ function formatSize(bytes: number): string {
9797 <Tabs
9898 v-else
9999 v-model =" activeTab "
100- class="h-full flex flex-col"
100+ class="flex flex-col w-full "
101101 >
102102 <TabsList class="bg-transparent m-2">
103103 <TabsTrigger
@@ -111,7 +111,7 @@ function formatSize(bytes: number): string {
111111 </TabsTrigger >
112112 </TabsList >
113113
114- <div class =" flex-1 overflow-hidden " >
114+ <div class =" m-2 " >
115115 <TabsContent value="body" class="h-full mt-0">
116116 <ResponseBody />
117117 </TabsContent >
0 commit comments