Readd small view prop
This commit is contained in:
@@ -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
|
||||
}>(),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user