feat: 対応外の投稿を iframe で埋込む(#157) #199

マージ済み
みてるぞ が 2 個のコミットを feature/157 から main へマージ 2026-01-01 21:19:11 +09:00
コミット 472717b181 の変更だけを表示してゐます - すべてのコミットを表示
+7 -3
ファイルの表示
@@ -42,8 +42,9 @@ export default (({ post }: Props) => {
const [framed, setFramed] = useState (false)
return <>{
framed
return (
<>
{framed
? (
<iframe
src={post.url}
@@ -51,6 +52,7 @@ export default (({ post }: Props) => {
width={640}
height={360}/>)
: (
<div>
<a href="#" onClick={e => {
e.preventDefault ()
setFramed (confirm ('未確認の外部ページを表示します。\n'
@@ -59,5 +61,7 @@ export default (({ post }: Props) => {
return
}}>
</a>)}</>
</a>
</div>)}
</>)
}) satisfies FC<Props>