From 661e9077840b7b6d9fcf3006ee928c99e451b6b0 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 22 May 2025 00:14:16 +0700 Subject: [PATCH] enhancement: update layout hub when left panel collapse --- web-app/src/routes/hub.tsx | 77 ++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 37 deletions(-) diff --git a/web-app/src/routes/hub.tsx b/web-app/src/routes/hub.tsx index af6819ce0..2f73b5ce0 100644 --- a/web-app/src/routes/hub.tsx +++ b/web-app/src/routes/hub.tsx @@ -19,6 +19,7 @@ import { import { downloadModel } from '@/services/models' import { useDownloadStore } from '@/hooks/useDownloadStore' import { Progress } from '@/components/ui/progress' +import HeaderPage from '@/containers/HeaderPage' type ModelProps = { model: { @@ -160,44 +161,46 @@ function Hub() { return (
-
-
- - -
- - - - { - sortOptions.find((option) => option.value === sortSelected) - ?.name - } - - - - {sortOptions.map((option) => ( - setSortSelected(option.value)} + +
+
+ + +
+ + + - {option.name} - - ))} - - -
+ { + sortOptions.find((option) => option.value === sortSelected) + ?.name + } + + + + {sortOptions.map((option) => ( + setSortSelected(option.value)} + > + {option.name} + + ))} + +
+
+
{loading ? (