diff --git a/front/src/components/ui/Card.vue b/front/src/components/ui/Card.vue index e83cb0e91..3d45b9e51 100644 --- a/front/src/components/ui/Card.vue +++ b/front/src/components/ui/Card.vue @@ -16,17 +16,15 @@ const props = defineProps<{ tags?: string[] image?: string | { src: string, style?: "withPadding" } icon?: string -} & { - [Size in 'small' | 'auto']?: true -} & Partial & (PastelProps | ColorProps | DefaultProps) & RaisedProps & VariantProps>() +} & ({ + [Width in 'small' | 'auto']?: true +} | { width: string }) & Partial & (PastelProps | ColorProps | DefaultProps) & RaisedProps & VariantProps>() const image = typeof props.image === 'string' ? { src: props.image } : props.image const isExternalLink = computed(() => { return typeof props.to === 'string' && props.to.startsWith('http') }) - -// const fallbackWidth = @@ -91,7 +91,7 @@ const isExternalLink = computed(() => {