用户菜单新增个人中心
This commit is contained in:
@@ -88,6 +88,8 @@ export default function WatchRoomPage() {
|
||||
});
|
||||
};
|
||||
|
||||
const getAvatarText = (name?: string) => (name?.trim().charAt(0).toUpperCase() || '用');
|
||||
|
||||
// 加载房间列表
|
||||
const loadRooms = async (showLoading = false) => {
|
||||
if (!isConnected) return;
|
||||
@@ -477,8 +479,8 @@ export default function WatchRoomPage() {
|
||||
className="flex items-center justify-between bg-white dark:bg-gray-800 rounded-lg p-3"
|
||||
>
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="w-10 h-10 rounded-full bg-gradient-to-r from-blue-400 to-purple-500 flex items-center justify-center text-white font-bold">
|
||||
{member.name.charAt(0).toUpperCase()}
|
||||
<div className="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold">
|
||||
{getAvatarText(member.name)}
|
||||
</div>
|
||||
<span className="font-medium text-gray-900 dark:text-gray-100">
|
||||
{member.name}
|
||||
@@ -673,8 +675,8 @@ export default function WatchRoomPage() {
|
||||
className="flex items-center justify-between bg-white dark:bg-gray-800 rounded-lg p-3"
|
||||
>
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="w-10 h-10 rounded-full bg-gradient-to-r from-green-400 to-teal-500 flex items-center justify-center text-white font-bold">
|
||||
{member.name.charAt(0).toUpperCase()}
|
||||
<div className="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold">
|
||||
{getAvatarText(member.name)}
|
||||
</div>
|
||||
<span className="font-medium text-gray-900 dark:text-gray-100">
|
||||
{member.name}
|
||||
|
||||
Reference in New Issue
Block a user