This commit is contained in:
Shusui MOYATANI
2023-03-18 14:22:25 +09:00
parent fd7da8ad7c
commit 4f10489d19
6 changed files with 18 additions and 20 deletions

View File

@@ -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('');
};

View File

@@ -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}

View File

@@ -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