fix: project card having margin due to get actions fn (#5849)

This commit is contained in:
Truman Gao
2026-04-18 11:47:05 -06:00
committed by GitHub
parent 15fc6d4e38
commit bb6e24640c

View File

@@ -161,7 +161,7 @@ const maxResultsOptions = computed<ComboboxOption<number>[]>(() =>
@mouseenter="ctx.onServerProjectHover?.(result)"
@mouseleave="ctx.onProjectHoverEnd?.()"
>
<template v-if="ctx.getCardActions" #actions>
<template v-if="ctx.getCardActions?.(result, ctx.projectType.value)?.length" #actions>
<div class="flex gap-2">
<ButtonStyled
v-for="action in ctx.getCardActions(result, ctx.projectType.value)"
@@ -224,7 +224,7 @@ const maxResultsOptions = computed<ComboboxOption<number>[]>(() =>
@mouseenter="ctx.onProjectHover?.(result)"
@mouseleave="ctx.onProjectHoverEnd?.()"
>
<template v-if="ctx.getCardActions" #actions>
<template v-if="ctx.getCardActions?.(result, ctx.projectType.value)?.length" #actions>
<div class="flex gap-2">
<ButtonStyled
v-for="action in ctx.getCardActions(result, ctx.projectType.value)"