Skip to content

Commit f9fd924

Browse files
committed
style: Fix card padding
1 parent 199c5fd commit f9fd924

File tree

1 file changed

+31
-34
lines changed

1 file changed

+31
-34
lines changed

src/platform/assets/components/AssetCard.vue

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
tabindex="1"
88
:class="
99
cn(
10-
'rounded-2xl overflow-hidden transition-all duration-200 bg-modal-card-background p-2',
10+
'rounded-2xl overflow-hidden transition-all duration-200 bg-modal-card-background p-2 gap-2 flex flex-col',
1111
interactive &&
1212
'group appearance-none bg-transparent m-0 outline-none text-left hover:bg-secondary-background focus:bg-secondary-background border-none focus:outline-solid outline-base-foreground outline-4'
1313
)
@@ -63,39 +63,36 @@
6363
</MoreButton>
6464
</IconGroup>
6565
</div>
66-
<div :class="cn('p-4 h-32 flex flex-col justify-between')">
67-
<div>
68-
<h3
69-
:id="titleId"
70-
v-tooltip.top="{ value: asset.name, showDelay: tooltipDelay }"
71-
:class="
72-
cn(
73-
'mb-2 m-0 text-base font-semibold line-clamp-2 wrap-anywhere',
74-
'text-base-foreground'
75-
)
76-
"
77-
>
78-
<EditableText
79-
:model-value="newNameRef ?? asset.name"
80-
:is-editing="isEditing"
81-
:input-attrs="{ 'data-testid': 'asset-name-input' }"
82-
@edit="assetRename"
83-
@cancel="assetRename()"
84-
/>
85-
</h3>
86-
<p
87-
:id="descId"
88-
v-tooltip.top="{ value: asset.description, showDelay: tooltipDelay }"
89-
:class="
90-
cn(
91-
'm-0 text-sm leading-6 overflow-hidden [-webkit-box-orient:vertical] [-webkit-line-clamp:2] [display:-webkit-box]',
92-
'text-muted-foreground'
93-
)
94-
"
95-
>
96-
{{ asset.description }}
97-
</p>
98-
</div>
66+
<div :class="cn('max-h-32 flex flex-col gap-2 justify-between')">
67+
<h3
68+
:id="titleId"
69+
v-tooltip.top="{ value: asset.name, showDelay: tooltipDelay }"
70+
:class="
71+
cn(
72+
'mb-2 m-0 text-base font-semibold line-clamp-2 wrap-anywhere',
73+
'text-base-foreground'
74+
)
75+
"
76+
>
77+
<EditableText
78+
:model-value="newNameRef ?? asset.name"
79+
:is-editing="isEditing"
80+
:input-attrs="{ 'data-testid': 'asset-name-input' }"
81+
@edit="assetRename"
82+
@cancel="assetRename()"
83+
/>
84+
</h3>
85+
<p
86+
:id="descId"
87+
v-tooltip.top="{ value: asset.description, showDelay: tooltipDelay }"
88+
:class="
89+
cn(
90+
'm-0 text-sm leading-6 overflow-hidden [-webkit-box-orient:vertical] [-webkit-line-clamp:2] [display:-webkit-box] text-muted-foreground'
91+
)
92+
"
93+
>
94+
{{ asset.description }}
95+
</p>
9996
<div :class="cn('flex gap-4 text-xs text-muted-foreground')">
10097
<span v-if="asset.stats.stars" class="flex items-center gap-1">
10198
<i class="icon-[lucide--star] size-3" />

0 commit comments

Comments
 (0)