@@ -92,12 +92,11 @@ onUnmounted(() => {
92
92
</script >
93
93
94
94
<template >
95
- <div class =" flex flex-col h-full " >
95
+ <div class =" flex flex-col h-screen " >
96
96
<UniversalToolBar :path ></UniversalToolBar >
97
- <Splitter :gutterSize =" 2" class =" flex-1 overflow-hidden"
98
- :layout =" windowWidth > 768 ? 'horizontal' : 'vertical'" >
97
+ <Splitter :gutterSize =" 2" class =" h-full overflow-hidden" :layout =" windowWidth > 768 ? 'horizontal' : 'vertical'" >
99
98
<SplitterPanel >
100
- <div class =" flex flex-col gap-2 w-full h-full" >
99
+ <div class =" flex flex-col gap-2 h-full" >
101
100
<div class =" p-3 flex flex-wrap flex-row items-center justify-between w-full" >
102
101
<Button size =" small" icon =" pi pi-arrow-left" plain outlined ></Button >
103
102
<div class =" inline-flex items-center gap-1" >
@@ -106,21 +105,24 @@ onUnmounted(() => {
106
105
<Button size =" small" severity =" danger" icon =" pi pi-trash" outlined ></Button >
107
106
</div >
108
107
</div >
109
- <div class =" flex flex-row w -full h-full " >
108
+ <div class =" flex flex-row h -full overflow-auto " >
110
109
<div class =" flex flex-col w-20 gap-4" >
111
110
<Button pt:label:class =" text-xs" label =" Problem" icon =" pi pi-code" size =" small"
112
111
iconPos =" top" plain text disabled ></Button >
113
112
<Button pt:label:class =" text-xs" label =" Records" icon =" pi pi-file" size =" small"
114
113
iconPos =" top" plain text disabled ></Button >
115
114
</div >
116
- <MdPreview v-if =" !loading" class =" !bg-transparent" :modelValue =" formatProblem(problem!)"
117
- :theme =" themeStore.dark ? 'dark' : 'light'" codeTheme =" github" previewTheme =" github" >
118
- </MdPreview >
119
- <div v-else class =" flex flex-col gap-4 m-3" >
120
- <Skeleton height =" 2em" width =" 15vw" ></Skeleton >
121
- <Skeleton height =" 5em" width =" 40vw" ></Skeleton >
122
- <Skeleton height =" 2em" width =" 30vw" ></Skeleton >
123
- <Skeleton height =" 10em" width =" 40vw" ></Skeleton >
115
+ <div class =" flex w-full h-full overflow-auto" >
116
+ <MdPreview v-if =" !loading" class =" !bg-transparent"
117
+ :modelValue =" formatProblem(problem!)" :theme =" themeStore.dark ? 'dark' : 'light'"
118
+ codeTheme =" github" previewTheme =" github" >
119
+ </MdPreview >
120
+ <div v-else class =" flex flex-col gap-4 m-3" >
121
+ <Skeleton height =" 2em" width =" 12vw" ></Skeleton >
122
+ <Skeleton height =" 5em" width =" 36vw" ></Skeleton >
123
+ <Skeleton height =" 2em" width =" 27vw" ></Skeleton >
124
+ <Skeleton height =" 10em" width =" 36vw" ></Skeleton >
125
+ </div >
124
126
</div >
125
127
</div >
126
128
</div >
0 commit comments