classcard-ui 0.2.1237 → 0.2.1239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classcard-ui.common.js +74 -68
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +74 -68
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CAvatar/CAvatar.vue +6 -1
- package/src/components/CCard/CCard.vue +5 -5
package/package.json
CHANGED
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
:class="[
|
|
15
15
|
classes,
|
|
16
16
|
imageClasses,
|
|
17
|
+
imageResizeClass,
|
|
17
18
|
hasRing ? `p-1 ring-2 ${getRingColor}` : '',
|
|
18
19
|
]"
|
|
19
|
-
class="inline-block
|
|
20
|
+
class="inline-block"
|
|
20
21
|
:src="image"
|
|
21
22
|
alt=""
|
|
22
23
|
/>
|
|
@@ -155,6 +156,10 @@ export default {
|
|
|
155
156
|
ringColor: { type: String, default: "gray" },
|
|
156
157
|
hasLabel: { type: Boolean, default: false },
|
|
157
158
|
labelDetails: { type: Object, default: null },
|
|
159
|
+
imageResizeClass: {
|
|
160
|
+
type: String,
|
|
161
|
+
default: "object-cover",
|
|
162
|
+
},
|
|
158
163
|
},
|
|
159
164
|
data() {
|
|
160
165
|
return {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="relative rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm
|
|
3
|
+
class="relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400"
|
|
4
4
|
>
|
|
5
|
-
<div class="flex-shrink-0
|
|
5
|
+
<div class="flex-shrink-0 rounded-md bg-gray-100 p-2">
|
|
6
6
|
<c-avatar
|
|
7
7
|
:image="image.image"
|
|
8
8
|
:rounded="image.rounded"
|
|
9
9
|
:size="image.size"
|
|
10
|
-
|
|
10
|
+
:imageResizeClass="'object-contain'"
|
|
11
11
|
></c-avatar>
|
|
12
12
|
</div>
|
|
13
|
-
<div class="
|
|
13
|
+
<div class="min-w-0 flex-1">
|
|
14
14
|
<a href="#" class="focus:outline-none">
|
|
15
15
|
<span class="absolute inset-0" aria-hidden="true"></span>
|
|
16
16
|
<div class="flex">
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</p>
|
|
20
20
|
<slot></slot>
|
|
21
21
|
</div>
|
|
22
|
-
<p class="text-sm text-gray-500
|
|
22
|
+
<p class="truncate text-sm text-gray-500">
|
|
23
23
|
{{ description }}
|
|
24
24
|
</p>
|
|
25
25
|
</a>
|