|
7 | 7 | tabindex="1" |
8 | 8 | :class=" |
9 | 9 | 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', |
11 | 11 | interactive && |
12 | 12 | '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' |
13 | 13 | ) |
|
63 | 63 | </MoreButton> |
64 | 64 | </IconGroup> |
65 | 65 | </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> |
99 | 96 | <div :class="cn('flex gap-4 text-xs text-muted-foreground')"> |
100 | 97 | <span v-if="asset.stats.stars" class="flex items-center gap-1"> |
101 | 98 | <i class="icon-[lucide--star] size-3" /> |
|
0 commit comments