File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
frontend/src/app/(auth)/leetcode-dashboard Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,12 @@ export function LeetcodeDashboardTable({
216
216
pageIndex : data . totalPages - 1 ,
217
217
} ) ) ;
218
218
} else {
219
+ if ( pagination . pageIndex + 1 == 0 && data . totalPages !== 0 ) {
220
+ setPagination ( ( prev ) => ( {
221
+ ...prev ,
222
+ pageIndex : 0 ,
223
+ } ) ) ;
224
+ }
219
225
setData ( data . questions ) ;
220
226
}
221
227
} ) ;
@@ -243,7 +249,7 @@ export function LeetcodeDashboardTable({
243
249
return (
244
250
< div className = "w-full test" >
245
251
< div >
246
- < Table className = "font-light min-h-[50vh ]" >
252
+ < Table className = "font-light min-h-[40vh ]" >
247
253
< TableHeader className = "w-full" >
248
254
< TableRow className = "text-white bg-primary-900 font-medium hover:bg-transparent h-[5rem] text-md" >
249
255
< TableCell colSpan = { 5 } className = "pl-10" >
@@ -267,7 +273,7 @@ export function LeetcodeDashboardTable({
267
273
Filter By
268
274
</ Button >
269
275
{ isFilterOpen && (
270
- < div className = "absolute right-0 mt-2 w-72 min-h-[184px] bg-primary-800 text-primary-300 border border-gray-300 rounded shadow-lg z-10" >
276
+ < div className = "absolute right-0 mt-2 w-[408px] min-h-[184px] bg-primary-800 text-primary-300 border border-gray-300 rounded shadow-lg z-10" >
271
277
< div className = "flex flex-col place-items-center mt-4 gap-4" >
272
278
< div className = "w-[90%]" >
273
279
< div className = "text-xs" > Difficulty</ div >
You can’t perform that action at this time.
0 commit comments