Skip to content

Commit 359b046

Browse files
committed
update more fe
1 parent 2cf2042 commit 359b046

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

bifrost/app/models/ModelRegistryPage.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function ModelRegistryPage() {
169169

170170
return (
171171
<div className="min-h-screen bg-white dark:bg-black">
172-
<div className="max-w-7xl mx-auto">
172+
<div>
173173
{/* Main Layout: Sidebar + Content */}
174174
<div className="flex">
175175
{/* Left Sidebar - Filters - Sticky position */}
@@ -190,7 +190,7 @@ export function ModelRegistryPage() {
190190
/>
191191
</button>
192192
{expandedSections.has("providers") && (
193-
<div className="space-y-1 max-h-48 overflow-y-auto">
193+
<div className="space-y-1 max-h-48 overflow-y-auto pr-2">
194194
{availableFilters.providers.map((provider) => {
195195
const providerName =
196196
typeof provider === "string"
@@ -215,7 +215,7 @@ export function ModelRegistryPage() {
215215
}}
216216
className={`flex items-center justify-between px-2 py-1.5 text-sm cursor-pointer transition-colors ${
217217
isSelected
218-
? "bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300"
218+
? "bg-sky-50 dark:bg-sky-900/10 text-sky-700 dark:text-sky-400"
219219
: "text-gray-400 dark:text-gray-500 hover:bg-gray-50 dark:hover:bg-gray-800"
220220
}`}
221221
>
@@ -357,9 +357,9 @@ export function ModelRegistryPage() {
357357
</div>
358358

359359
{/* Right Content - Table */}
360-
<div className="flex-1 min-w-0">
360+
<div className="flex-1 min-w-0 min-h-[calc(100vh-var(--header-offset))] flex flex-col">
361361
{/* Controls Box - Connected to sidebar and table */}
362-
<div className="bg-white dark:bg-gray-900 border-l border-r border-gray-200 dark:border-gray-800">
362+
<div className="bg-white dark:bg-gray-900 border-l border-r border-b border-gray-200 dark:border-gray-800 sticky top-[var(--header-offset)] z-10 shadow-sm">
363363
<div className="p-6">
364364
<div className="flex flex-col gap-4">
365365
{/* Title and model count */}
@@ -430,10 +430,10 @@ export function ModelRegistryPage() {
430430
</div>
431431

432432
{/* Models Table - Connected to controls box with divider */}
433-
<div className="overflow-hidden bg-white dark:bg-gray-900 border-t border-l border-r border-b border-gray-200 dark:border-gray-800">
433+
<div className="flex-1 overflow-hidden bg-white dark:bg-gray-900 border-l border-r border-b border-gray-200 dark:border-gray-800">
434434
<div className="overflow-x-auto">
435435
<table className="w-full min-w-[640px]">
436-
{filteredModels.map((model) => {
436+
{filteredModels.map((model, index) => {
437437
const minInputCost = Math.min(
438438
...model.endpoints.map((e) => e.pricing.prompt)
439439
);
@@ -529,11 +529,13 @@ export function ModelRegistryPage() {
529529
</td>
530530
</tr>
531531

532-
<tr>
533-
<td className="px-6 py-2">
534-
<div className="border-b border-gray-100 dark:border-gray-800/50 mx-12"></div>
535-
</td>
536-
</tr>
532+
{index < filteredModels.length - 1 && (
533+
<tr>
534+
<td className="px-6 py-2">
535+
<div className="border-b border-gray-100 dark:border-gray-800/50 mx-12"></div>
536+
</td>
537+
</tr>
538+
)}
537539
</tbody>
538540
);
539541
})}

0 commit comments

Comments
 (0)