diff --git a/src/common/component/InviteModal/index.tsx b/src/common/component/InviteModal/index.tsx index 28303321..7da626aa 100644 --- a/src/common/component/InviteModal/index.tsx +++ b/src/common/component/InviteModal/index.tsx @@ -25,13 +25,15 @@ const InviteModal: FC = ({ type = "server", cid, title = "", closeModal } const finalTitle = type == "server" ? server.name : `#${title || channel?.name}`; return ( -
-

+
+

{t("invite_title", { name: finalTitle })}

- {!channel?.is_public && } - +
+ {!channel?.is_public && } + +
); diff --git a/src/routes/chat/SessionList/Session.tsx b/src/routes/chat/SessionList/Session.tsx index 810dd5c6..0e09f8dc 100644 --- a/src/routes/chat/SessionList/Session.tsx +++ b/src/routes/chat/SessionList/Session.tsx @@ -125,7 +125,7 @@ const Session: FC = ({ > clsx(`nav flex gap-2 rounded-lg p-2 w-full md:hover:bg-gray-500/20`, isActive && "shadow-[inset_0_0_0_2px_#52edff]", linkActive && "bg-gray-500/20")} + className={({ isActive: linkActive }) => clsx(`nav flex gap-2 rounded-lg p-2 w-full`, isActive && "shadow-[inset_0_0_0_2px_#52edff]", linkActive && "bg-gray-500/20", pinned ? "md:hover:bg-gray-300/20" : "md:hover:bg-gray-500/20")} to={navPath} onContextMenu={handleContextMenuEvent} > diff --git a/src/routes/chat/SessionList/index.tsx b/src/routes/chat/SessionList/index.tsx index 098f7f9a..c0db927e 100644 --- a/src/routes/chat/SessionList/index.tsx +++ b/src/routes/chat/SessionList/index.tsx @@ -105,7 +105,7 @@ const SessionList: FC = ({ tempSession }) => { return ( <> - {pinSessions.length ?
    + {pinSessions.length ?
      {pinSessions.map((p) => { const { type, id, mid = 0 } = p; const key = `${type}_${id}`;