@fayz-ai/plugin-conversations 0.12.0 → 0.12.1
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/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/views/ConversationList.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -787,21 +787,26 @@ function ConversationList({ className }) {
|
|
|
787
787
|
onClick: () => select(c.id),
|
|
788
788
|
className: cn(
|
|
789
789
|
"flex w-full items-start gap-3 border-b border-border/50 px-3 py-3 text-left transition-colors",
|
|
790
|
-
|
|
790
|
+
// `text-accent-foreground` JUNTO com `bg-accent`: o par existe
|
|
791
|
+
// para ser usado em par. Só o fundo trocava, e num tema em que
|
|
792
|
+
// `accent` é quase preto o nome e a prévia continuavam
|
|
793
|
+
// `text-foreground` — escuro sobre escuro, ilegível na conversa
|
|
794
|
+
// ABERTA, que é justamente a que se está lendo.
|
|
795
|
+
active ? "bg-accent text-accent-foreground" : "hover:bg-muted/50"
|
|
791
796
|
),
|
|
792
797
|
children: [
|
|
793
798
|
/* @__PURE__ */ jsx(Avatar, { name: c.contactName, accent: c.accent, channel: c.channel }),
|
|
794
799
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
795
800
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
796
|
-
/* @__PURE__ */ jsx("span", { className: cn("truncate text-sm text-foreground", unread ? "font-semibold" : "font-medium"), children: c.contactName }),
|
|
797
|
-
/* @__PURE__ */ jsx("span", { className: cn("shrink-0 text-[11px]", unread ? "font-semibold text-primary" : "text-muted-foreground"), children: relativeTime(c.lastMessageAt) })
|
|
801
|
+
/* @__PURE__ */ jsx("span", { className: cn("truncate text-sm", active ? "" : "text-foreground", unread ? "font-semibold" : "font-medium"), children: c.contactName }),
|
|
802
|
+
/* @__PURE__ */ jsx("span", { className: cn("shrink-0 text-[11px]", active ? "opacity-70" : unread ? "font-semibold text-primary" : "text-muted-foreground", active && unread && "font-semibold opacity-100"), children: relativeTime(c.lastMessageAt) })
|
|
798
803
|
] }),
|
|
799
804
|
/* @__PURE__ */ jsxs("div", { className: "mt-1 flex items-center gap-2", children: [
|
|
800
805
|
/* @__PURE__ */ jsx(ChannelBadge, { channel: c.channel }),
|
|
801
|
-
c.status !== "open" && /* @__PURE__ */ jsx("span", { className: "text-[10px] uppercase tracking-wide text-muted-foreground/70", children: t(`conversations.status.${c.status}`) })
|
|
806
|
+
c.status !== "open" && /* @__PURE__ */ jsx("span", { className: cn("text-[10px] uppercase tracking-wide", active ? "opacity-70" : "text-muted-foreground/70"), children: t(`conversations.status.${c.status}`) })
|
|
802
807
|
] }),
|
|
803
808
|
/* @__PURE__ */ jsxs("div", { className: "mt-1 flex items-center justify-between gap-2", children: [
|
|
804
|
-
/* @__PURE__ */ jsx("span", { className: cn("truncate text-xs", unread ? "text-foreground" : "text-muted-foreground"), children: c.lastMessagePreview }),
|
|
809
|
+
/* @__PURE__ */ jsx("span", { className: cn("truncate text-xs", active ? "opacity-80" : unread ? "text-foreground" : "text-muted-foreground"), children: c.lastMessagePreview }),
|
|
805
810
|
unread && /* @__PURE__ */ jsx("span", { className: "flex h-[18px] min-w-[18px] shrink-0 items-center justify-center rounded-full bg-primary px-1.5 text-[10px] font-semibold text-primary-foreground", children: c.unreadCount })
|
|
806
811
|
] })
|
|
807
812
|
] })
|