mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 22:44:26 +01:00
update
This commit is contained in:
@@ -6,13 +6,13 @@ type ConfigProps = {
|
||||
};
|
||||
|
||||
const RelayConfig = () => {
|
||||
const { config, setConfig, addRelay, removeRelay } = useConfig();
|
||||
const { config, addRelay, removeRelay } = useConfig();
|
||||
|
||||
const [relayUrlInput, setRelayUrlInput] = createSignal<string>('');
|
||||
|
||||
const handleClickAddRelay: JSX.EventHandler<HTMLFormElement, Event> = (ev) => {
|
||||
ev.preventDefault();
|
||||
if (relayUrlInput().length > 0) return;
|
||||
if (relayUrlInput().length === 0) return;
|
||||
addRelay(relayUrlInput());
|
||||
setRelayUrlInput('');
|
||||
};
|
||||
|
||||
@@ -44,7 +44,7 @@ const Reaction: Component<ReactionProps> = (props) => {
|
||||
</Switch>
|
||||
</div>
|
||||
<div class="notification-user flex gap-1">
|
||||
<div class="author-icon h-5 w-5 shrink-0">
|
||||
<div class="author-icon h-5 w-5 shrink-0 overflow-hidden object-cover">
|
||||
<Show when={profile()?.picture != null}>
|
||||
<img
|
||||
src={profile()?.picture}
|
||||
|
||||
@@ -146,7 +146,7 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
|
||||
return (
|
||||
<div class="nostr-textnote flex flex-col">
|
||||
<div class="flex w-full gap-1">
|
||||
<div class="author-icon h-10 w-10 shrink-0">
|
||||
<div class="author-icon h-10 w-10 shrink-0 overflow-hidden object-cover">
|
||||
<Show when={author()?.picture}>
|
||||
{/* TODO 画像は脆弱性回避のためにimgじゃない方法で読み込みたい */}
|
||||
<img
|
||||
|
||||
Reference in New Issue
Block a user