mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-20 07:24:23 +01:00
fix: thumbnail object-fit
This commit is contained in:
@@ -56,11 +56,11 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
const { reactions, isReactedBy, invalidateReactions } = useReactions(() => ({
|
const { reactions, isReactedBy, invalidateReactions } = useReactions(() => ({
|
||||||
eventId: props.event.id as string, // TODO いつかなおす
|
eventId: props.event.id, // TODO いつかなおす
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const { reposts, isRepostedBy, invalidateDeprecatedReposts } = useDeprecatedReposts(() => ({
|
const { reposts, isRepostedBy, invalidateDeprecatedReposts } = useDeprecatedReposts(() => ({
|
||||||
eventId: props.event.id as string, // TODO いつかなおす
|
eventId: props.event.id, // TODO いつかなおす
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const commands = useCommands();
|
const commands = useCommands();
|
||||||
@@ -145,17 +145,12 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
|
|||||||
<div class="nostr-textnote flex flex-col">
|
<div class="nostr-textnote flex flex-col">
|
||||||
<div class="flex w-full gap-1">
|
<div class="flex w-full gap-1">
|
||||||
<button
|
<button
|
||||||
class="author-icon h-10 w-10 shrink-0 overflow-hidden object-cover"
|
class="author-icon h-10 w-10 shrink-0 overflow-hidden"
|
||||||
onClick={() => showProfile(event().pubkey)}
|
onClick={() => showProfile(event().pubkey)}
|
||||||
>
|
>
|
||||||
<Show when={author()?.picture}>
|
<Show when={author()?.picture}>
|
||||||
{/* TODO 画像は脆弱性回避のためにimgじゃない方法で読み込みたい */}
|
{/* TODO 画像は脆弱性回避のためにimgじゃない方法で読み込みたい */}
|
||||||
<img
|
<img src={author()?.picture} alt="icon" class="h-full w-full rounded object-cover" />
|
||||||
src={author()?.picture}
|
|
||||||
alt="icon"
|
|
||||||
// TODO autofit
|
|
||||||
class="h-10 w-10 rounded"
|
|
||||||
/>
|
|
||||||
</Show>
|
</Show>
|
||||||
</button>
|
</button>
|
||||||
<div class="min-w-0 flex-auto">
|
<div class="min-w-0 flex-auto">
|
||||||
|
|||||||
Reference in New Issue
Block a user