feat: show quote note id when loading

feat: try load quote note from other relays
This commit is contained in:
2024-09-16 11:31:22 +01:00
parent 21e88b06cb
commit b0d2081b45
4 changed files with 65 additions and 6 deletions

View File

@ -22,7 +22,12 @@ export default function Copy({ text, maxSize = 32, className, showText, mask }:
: displayText;
return (
<div className={classNames("copy flex pointer g8 items-center", className)} onClick={() => copy(text)}>
<div
className={classNames("copy flex pointer g8 items-center", className)}
onClick={e => {
e.stopPropagation();
copy(text);
}}>
{(showText ?? true) && <span className="copy-body">{trimmed}</span>}
<span className="icon" style={{ color: copied ? "var(--success)" : "var(--highlight)" }}>
{copied ? <Icon name="check" size={14} /> : <Icon name="copy-solid" size={14} />}