docs(workspace): explain host page and sidebar lifecycles
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
/**
|
||||
* 头像的轻量显示降级:指定URL加载失败时用名字首段的大写表示,新的URL可重新尝试。
|
||||
* 失败标记仅属当前组件,不写用户资料,也不把一次图片失败当成账户失效。
|
||||
*/
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import styles from "./workspace.module.css";
|
||||
|
||||
/** 同一失败URL不反复重载;large仅控制尺寸,图片不发送Referrer,alt保留用户身份文本。 */
|
||||
export function UserAvatar({ name, url, large = false }: {
|
||||
name: string;
|
||||
url?: string | null;
|
||||
|
||||
Reference in New Issue
Block a user