ui: 移动端设备上, 最近列表不会呈现激活状态
This commit is contained in:
@@ -8,6 +8,7 @@ import Client from "../../api/Client.ts"
|
|||||||
import { checkApiSuccessOrSncakbar } from "../snackbar.ts";
|
import { checkApiSuccessOrSncakbar } from "../snackbar.ts";
|
||||||
import data from "../../Data.ts";
|
import data from "../../Data.ts";
|
||||||
import EventBus from "../../EventBus.ts";
|
import EventBus from "../../EventBus.ts";
|
||||||
|
import isMobileUI from "../isMobileUI.ts";
|
||||||
|
|
||||||
interface Args extends React.HTMLAttributes<HTMLElement> {
|
interface Args extends React.HTMLAttributes<HTMLElement> {
|
||||||
display: boolean
|
display: boolean
|
||||||
@@ -64,7 +65,7 @@ export default function RecentsList({
|
|||||||
chat.content.includes(searchText)
|
chat.content.includes(searchText)
|
||||||
).map((v) =>
|
).map((v) =>
|
||||||
<RecentsListItem
|
<RecentsListItem
|
||||||
active={currentChatId == v.id}
|
active={isMobileUI() ? false : currentChatId == v.id}
|
||||||
openChatFragment={() => openChatFragment(v.id)}
|
openChatFragment={() => openChatFragment(v.id)}
|
||||||
key={v.id}
|
key={v.id}
|
||||||
recentChat={v} />
|
recentChat={v} />
|
||||||
|
|||||||
Reference in New Issue
Block a user