your personal website on atproto - mirror blento.app
at remove-extra-buttons 16 lines 412 B view raw
1<script lang="ts"> 2 import { getCanEdit } from '$lib/website/context'; 3 import type { ContentComponentProps } from '../types'; 4 5 let { item }: ContentComponentProps = $props(); 6 7 let isEditing = getCanEdit(); 8</script> 9 10<iframe 11 src={item.cardData.href} 12 sandbox="allow-scripts" 13 referrerpolicy="no-referrer" 14 class={['absolute inset-0 h-full w-full', isEditing() && 'pointer-events-none']} 15 title="" 16></iframe>