docs: Post component comments
This commit is contained in:
1 parent
80fff16671
commit
45f73ff3dc
6 files changed
+27
No files matched your search
@@ -92,6 +92,10 @@
|
||||
$: embedUrl = urlToEmbed(url)
|
||||
</script>
|
||||
|
||||
<!--
|
||||
@component
|
||||
Displays a video file or embedded video iframe.
|
||||
-->
|
||||
{#if opened}
|
||||
{#if type == 'video'}
|
||||
<!-- svelte-ignore a11y-media-has-caption -->
|
||||
|
||||
@@ -23,6 +23,12 @@
|
||||
let showAltText = false
|
||||
</script>
|
||||
|
||||
<!--
|
||||
@component
|
||||
This component will show either
|
||||
- A media item (pictures, videos) (large form factor posts only)
|
||||
- Embed link/card.
|
||||
-->
|
||||
{#if type == 'image'}
|
||||
{#if view == 'card' || view == 'cozy'}
|
||||
<!--disabled preloads here since most people will hover over every image while scrolling-->
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
export let type: MediaType = 'none'
|
||||
</script>
|
||||
|
||||
<!--
|
||||
@component
|
||||
Thumbnails for compact and list view posts.
|
||||
-->
|
||||
{#if view == 'compact' || (view == 'list' && type != 'none')}
|
||||
<div
|
||||
class="w-24 sm:w-32 h-24 relative group/media {$$props.class ?? ''}"
|
||||
|
||||
Reference in new issue
Block a user