Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Followup Release #700

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/artifacts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function ModelsPage() {
<ProButtons />
</div>
<ProImage
className="flex-1 translate-x-[10%] translate-y-[20%] scale-110"
className="absolute translate-x-[30%] translate-y-[15%] scale-[40%]"
src={ACP}
alt="Screenshot of the ZenML Pro Artifact Control Plane"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/app/models/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function ModelsPage() {
<ProButtons />
</div>
<ProImage
className="flex-1 translate-x-[10%] translate-y-[20%] scale-110"
className="absolute translate-x-[30%] translate-y-[15%] scale-[40%]"
src={MCP}
alt="Screenshot of the ZenML Pro Artifact Control Plane"
/>
Expand Down
10 changes: 3 additions & 7 deletions src/components/MetadataCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ import { isUrl } from "../lib/url";
type Props = { metadata: MetadataMap };

export function MetadataCards({ metadata }: Props) {
const dictMetadata = Object.values(metadata || {}).filter((val) => isObject(val));
const dictMetadata = Object.entries(metadata || {}).filter(([_, val]) => isObject(val));
return (
<>
{dictMetadata.map((metadataObj, idx) => (
<NestedCollapsible
key={idx}
data={metadataObj as Record<string, unknown>}
title={Object.keys({ metadataObj })[0]}
/>
{dictMetadata.map(([key, metadataObj], idx) => (
<NestedCollapsible key={idx} data={metadataObj as Record<string, unknown>} title={key} />
))}
</>
);
Expand Down
5 changes: 4 additions & 1 deletion src/components/pro/ProCta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ export function ProButtons() {
export function ProImage({ className, ...rest }: ImgHTMLAttributes<HTMLImageElement>) {
return (
<img
className={cn("w-full shrink-0 rounded-md border border-theme-border-moderate", className)}
className={cn(
"hidden w-full shrink-0 rounded-md border border-theme-border-moderate 2xl:block",
className
)}
{...rest}
/>
);
Expand Down
Loading