Skip to content

Commit

Permalink
Merge pull request #700 from zenml-io/staging
Browse files Browse the repository at this point in the history
Followup Release
  • Loading branch information
Cahllagerfeld authored Nov 12, 2024
2 parents 5045ba1 + 047d114 commit c0f6447
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
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

0 comments on commit c0f6447

Please sign in to comment.