mirror of
https://github.com/smolgrrr/TAO.git
synced 2024-09-20 09:21:25 +00:00
UI work
This commit is contained in:
parent
5404ad0bf9
commit
316c31206e
@ -1,8 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
ArrowUpTrayIcon,
|
ServerIcon,
|
||||||
CpuChipIcon,
|
CpuChipIcon,
|
||||||
ArrowPathIcon,
|
ArrowPathIcon,
|
||||||
FaceSmileIcon
|
PlusCircleIcon
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
import { XCircleIcon } from "@heroicons/react/24/solid";
|
import { XCircleIcon } from "@heroicons/react/24/solid";
|
||||||
import { useState, useEffect, useRef } from "react";
|
import { useState, useEffect, useRef } from "react";
|
||||||
@ -135,13 +135,13 @@ const NewNoteCard = ({
|
|||||||
>
|
>
|
||||||
<input type="hidden" name="MAX_FILE_SIZE" defaultValue={2.5 * 1024 * 1024} />
|
<input type="hidden" name="MAX_FILE_SIZE" defaultValue={2.5 * 1024 * 1024} />
|
||||||
<div className="px-4 flex flex-col rounded-lg">
|
<div className="px-4 flex flex-col rounded-lg">
|
||||||
{"C:\\WIRE>"}
|
|
||||||
<textarea
|
<textarea
|
||||||
name="com"
|
name="com"
|
||||||
wrap="soft"
|
wrap="soft"
|
||||||
className="shadow-lg w-full px-4 py-3 h-28 border-none bg-black text-white"
|
className="shadow-lg w-full px-4 py-3 border-blue-500 bg-black text-white"
|
||||||
value={comment}
|
value={comment}
|
||||||
onChange={(e) => setComment(e.target.value)}
|
onChange={(e) => setComment(e.target.value)}
|
||||||
|
rows={comment.split('\n').length || 1}
|
||||||
/>
|
/>
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
{file !== "" && (
|
{file !== "" && (
|
||||||
@ -172,10 +172,10 @@ const NewNoteCard = ({
|
|||||||
ref={emojiRef}
|
ref={emojiRef}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<FaceSmileIcon className="h-4 w-4 text-neutral-400 cursor-pointer" onClick={pickEmoji} />
|
<PlusCircleIcon className="h-4 w-4 text-neutral-400 cursor-pointer" onClick={pickEmoji} />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<ArrowUpTrayIcon
|
<ServerIcon
|
||||||
className="h-4 w-4 text-neutral-400 cursor-pointer"
|
className="h-4 w-4 text-neutral-400 cursor-pointer"
|
||||||
onClick={() => document.getElementById("file_input")?.click()}
|
onClick={() => document.getElementById("file_input")?.click()}
|
||||||
/>
|
/>
|
||||||
|
@ -10,7 +10,7 @@ export default function Header() {
|
|||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<img src="/icon.png" className="h-12" alt="logo" />
|
<img src="/icon.png" className="h-12" alt="logo" />
|
||||||
<span className="font-semibold text-white">
|
<span className="font-semibold text-white">
|
||||||
{'>'}.. Wired
|
{"~\\WIRED>"}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
@ -158,16 +158,14 @@ export const subNote = (
|
|||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
||||||
replies.add(eventId);
|
replies.add(eventId);
|
||||||
setTimeout(() => {
|
// subscribe to future replies
|
||||||
sub({
|
sub({
|
||||||
cb: onReply,
|
cb: onReply,
|
||||||
filter: {
|
filter: {
|
||||||
'#e': [eventId],
|
'#e': [eventId],
|
||||||
kinds: [1],
|
kinds: [1],
|
||||||
},
|
},
|
||||||
unsub: true, // TODO: probably keep this subscription also after onReply/unsubAll
|
|
||||||
});
|
});
|
||||||
}, 200);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** quick subscribe to a note id (nip-19) */
|
/** quick subscribe to a note id (nip-19) */
|
||||||
|
Loading…
Reference in New Issue
Block a user