@@ -92,12 +92,11 @@ onUnmounted(() => {
9292 </script >
9393
9494<template >
95- <div class =" flex flex-col h-full " >
95+ <div class =" flex flex-col h-screen " >
9696 <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'" >
9998 <SplitterPanel >
100- <div class =" flex flex-col gap-2 w-full h-full" >
99+ <div class =" flex flex-col gap-2 h-full" >
101100 <div class =" p-3 flex flex-wrap flex-row items-center justify-between w-full" >
102101 <Button size =" small" icon =" pi pi-arrow-left" plain outlined ></Button >
103102 <div class =" inline-flex items-center gap-1" >
@@ -106,21 +105,24 @@ onUnmounted(() => {
106105 <Button size =" small" severity =" danger" icon =" pi pi-trash" outlined ></Button >
107106 </div >
108107 </div >
109- <div class =" flex flex-row w -full h-full " >
108+ <div class =" flex flex-row h -full overflow-auto " >
110109 <div class =" flex flex-col w-20 gap-4" >
111110 <Button pt:label:class =" text-xs" label =" Problem" icon =" pi pi-code" size =" small"
112111 iconPos =" top" plain text disabled ></Button >
113112 <Button pt:label:class =" text-xs" label =" Records" icon =" pi pi-file" size =" small"
114113 iconPos =" top" plain text disabled ></Button >
115114 </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 >
124126 </div >
125127 </div >
126128 </div >
0 commit comments