浪費了半天時間, 索性移除了聯絡人分組的支援
This commit is contained in:
CrescentLeaf
2025-09-20 16:57:17 +08:00
parent 6a8acd4717
commit 5ce42bf651
7 changed files with 60 additions and 53 deletions

View File

@@ -1,5 +1,6 @@
import User from "../../api/client_data/User.ts"
import Avatar from "../Avatar.tsx"
import React from 'react'
interface Args extends React.HTMLAttributes<HTMLElement> {
contact: User
@@ -8,8 +9,10 @@ interface Args extends React.HTMLAttributes<HTMLElement> {
export default function ContactsListItem({ contact, openChatFragment }: Args) {
const { id, nickname, avatar } = contact
const ref = React.useRef<HTMLElement>(null)
return (
<mdui-list-item rounded style={{
<mdui-list-item ref={ref} rounded style={{
marginTop: '3px',
marginBottom: '3px',
width: '100%',