@@ -110,9 +110,8 @@ const BenchmarkDetail = ({
110
110
button = "Back"
111
111
navTo = "/benchmarks"
112
112
/>
113
- < div className = "flex p-4" >
114
- < div className = "grid flex-1 " >
115
- { /*<div className="flex-1 mx-auto border-4 border-dashed border-gray-200 rounded-lg h-96 p-4">*/ }
113
+ < div className = "flex p-4 overflow-hidden" >
114
+ < div className = "grid flex-1" >
116
115
< div className = "pl-8 pr-8 border-4 border-dashed border-gray-200 rounded-lg h-96 p-4" >
117
116
< div className = "flex justify-between" >
118
117
< h1 className = "text-2xl pb-3" > Subject</ h1 >
@@ -216,9 +215,7 @@ const BenchmarkDetail = ({
216
215
</ div >
217
216
< ReactMarkdown > { benchmarkData ?. subject || '' } </ ReactMarkdown >
218
217
</ div >
219
- < Leaderboard
220
- benchmarkId = { benchmarkData ?. id ? benchmarkData . id : '' }
221
- />
218
+
222
219
</ div >
223
220
< div className = "grid flex-1" >
224
221
< div className = "bg-gray-500 rounded-lg h-96" >
@@ -228,24 +225,27 @@ const BenchmarkDetail = ({
228
225
value = { lastSubmission && lastSubmission }
229
226
language = { selected . name }
230
227
/>
231
- </ div >
232
- < div className = "justify-self-start ml-10" > { result && result } </ div >
233
- < div className = "justify-self-end flex-1" >
234
- < button
235
- className = "bg-blue-500 hover:bg-blue-700 text-white font-bold mt-2 py-2 px-4 rounded"
236
- onClick = { ( ) => {
237
- mutate ( {
238
- code : editorRef . current . getValue ( ) ,
239
- benchmarkId :
240
- benchmarkData ?. id !== undefined ? benchmarkData . id : '' ,
241
- language : selected . name ,
242
- } ) ;
243
- } }
244
- >
245
- Run code
246
- </ button >
228
+ < div className = "grid justify-items-stretch" >
229
+ < button
230
+ className = "justify-self-end bg-blue-500 hover:bg-blue-700 text-white font-bold mt-2 py-2 px-4 rounded"
231
+ onClick = { ( ) => {
232
+ mutate ( {
233
+ code : editorRef . current . getValue ( ) ,
234
+ benchmarkId :
235
+ benchmarkData ?. id !== undefined ? benchmarkData . id : '' ,
236
+ language : selected . name ,
237
+ } ) ;
238
+ } }
239
+ >
240
+ Run code
241
+ </ button >
242
+ </ div >
243
+ < div className = "justify-self-start ml-10" > { result && result } </ div >
247
244
</ div >
248
245
</ div >
246
+ < Leaderboard
247
+ benchmarkId = { benchmarkData ?. id ? benchmarkData . id : '' }
248
+ />
249
249
</ div >
250
250
</ Page >
251
251
) ;
0 commit comments