@springbrand/message-panel 0.1.3-alpha.12 → 0.1.3-alpha.13
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/cloud-os/file-view.tsx +9 -1
- package/package.json +1 -1
package/cloud-os/file-view.tsx
CHANGED
|
@@ -165,7 +165,15 @@ export function FileView({
|
|
|
165
165
|
data-state={status === "ready" ? "done" : status}
|
|
166
166
|
>
|
|
167
167
|
<span className="flex size-8 shrink-0 items-center justify-center rounded-[10px] bg-kumo-control text-kumo-inactive themed-thumbnail-shadow">
|
|
168
|
-
|
|
168
|
+
{isImage ? (
|
|
169
|
+
<img
|
|
170
|
+
src={file.url}
|
|
171
|
+
alt=""
|
|
172
|
+
className="size-8 object-cover"
|
|
173
|
+
/>
|
|
174
|
+
) : (
|
|
175
|
+
<AttachmentIcon className="size-4" aria-hidden="true" />
|
|
176
|
+
)}
|
|
169
177
|
</span>
|
|
170
178
|
<span className="flex min-w-0 flex-col">
|
|
171
179
|
<span className="max-w-36 truncate text-xs font-medium text-kumo-default">
|