Studio Hub: preview first README in split view feed and round status chips into pills (#6404)
Co-authored-by: Unsloth <michaelhan@Michaels-MacBook-Pro.local>
This commit is contained in:
parent
9a966adf51
commit
68396ad125
2 changed files with 5 additions and 5 deletions
|
|
@ -201,7 +201,7 @@ function StatusChip({
|
|||
return (
|
||||
<span
|
||||
className={cn(
|
||||
"inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded-[7px] border bg-transparent px-1.5 text-[11px] font-medium leading-none",
|
||||
"inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded-full border bg-transparent px-2 text-[11px] font-medium leading-none",
|
||||
toneClass,
|
||||
className,
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -926,10 +926,11 @@ export function ModelsPage() {
|
|||
}
|
||||
}, [allModelsView]);
|
||||
|
||||
// Split view previews the first row so the detail pane isn't empty, except in
|
||||
// feed mode where the feed must stay visible.
|
||||
// Split view previews the first row so the detail pane isn't empty. Feed mode
|
||||
// included: split view hides the trending feed and shows only the master list,
|
||||
// so previewing its first row lands on a real README instead of a placeholder.
|
||||
useEffect(() => {
|
||||
if (allModelsView !== "split" || urlModel || isFeedMode) return;
|
||||
if (allModelsView !== "split" || urlModel) return;
|
||||
// Use the filtered rows the master pane renders, not raw inventory, so the
|
||||
// preview never lands on a filtered-out row.
|
||||
const firstId = isDiscoverTab
|
||||
|
|
@ -945,7 +946,6 @@ export function ModelsPage() {
|
|||
}, [
|
||||
allModelsView,
|
||||
urlModel,
|
||||
isFeedMode,
|
||||
isDiscoverTab,
|
||||
listRows,
|
||||
filteredCachedRows,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue