Readd small view prop

This commit is contained in:
andrewwallacespeckle
2025-08-05 15:57:40 +01:00
parent db6fae4151
commit a544a1f652
2 changed files with 6 additions and 1 deletions
@@ -74,6 +74,7 @@
<NuxtLink
:to="!defaultLinkDisabled ? modelRoute(projectId, model.id) : undefined"
class="relative z-20 bg-foundation-page w-full rounded-xl border border-outline-2"
:class="smallView ? 'h-24' : 'h-48'"
>
<PreviewImage :preview-url="previewUrl" />
</NuxtLink>
@@ -194,10 +195,12 @@ const props = withDefaults(
showVersions?: boolean
showActions?: boolean
disableDefaultLink?: boolean
smallView?: boolean
}>(),
{
showVersions: true,
showActions: true
showActions: true,
smallView: false
}
)
@@ -5,6 +5,7 @@
:items="items"
:project="project"
:project-id="projectId"
:small-view="smallView"
:show-actions="showActions"
:show-versions="showVersions"
:disable-default-links="disableDefaultLinks"
@@ -75,6 +76,7 @@ const props = withDefaults(
disablePagination?: boolean
sourceApps?: SourceAppDefinition[]
contributors?: FormUsersSelectItemFragment[]
smallView?: boolean
hideFileUpload?: boolean
}>(),
{