diff --git a/src/components/FeaturePhoto/FeaturePhoto.svelte b/src/components/FeaturePhoto/FeaturePhoto.svelte index 21e8b022..a9252114 100644 --- a/src/components/FeaturePhoto/FeaturePhoto.svelte +++ b/src/components/FeaturePhoto/FeaturePhoto.svelte @@ -17,6 +17,17 @@ * @required */ export let altText: string; + /** + * Add an id to target with custom CSS. + * @type {string} + */ + export let id: string = ''; + /** + * Add extra classes to target with custom CSS. + * @type {string} + */ + let cls: string = ''; + export { cls as class }; /** * Caption below the photo * @type {string} @@ -70,34 +81,37 @@ }); - -
+ +
{#if !lazy || (intersectable && intersecting)} - {altText} + {altText} {:else}
{/if} {#if caption} -
{caption}
+
+ {caption} +
{/if} {#if !altText} -
altText
+
altText
{/if}
diff --git a/src/components/GraphicBlock/GraphicBlock.svelte b/src/components/GraphicBlock/GraphicBlock.svelte index 3ab019e1..06123599 100644 --- a/src/components/GraphicBlock/GraphicBlock.svelte +++ b/src/components/GraphicBlock/GraphicBlock.svelte @@ -92,7 +92,7 @@ {:else if title} -

{title}

+

{title}

{#if description} {@html marked(description)} {/if} @@ -133,15 +133,28 @@ - diff --git a/src/components/NoteText/NoteText.svelte b/src/components/NoteText/NoteText.svelte index 9b05c721..a755d4b5 100644 --- a/src/components/NoteText/NoteText.svelte +++ b/src/components/NoteText/NoteText.svelte @@ -11,7 +11,7 @@ import Block from '../Block/Block.svelte'; - + {#if text} {@html marked.parse(text)} {/if} @@ -19,11 +19,27 @@ diff --git a/src/components/Scroller/Embedded/Foreground.svelte b/src/components/Scroller/Embedded/Foreground.svelte index b6b011a4..69ab9ae0 100644 --- a/src/components/Scroller/Embedded/Foreground.svelte +++ b/src/components/Scroller/Embedded/Foreground.svelte @@ -41,9 +41,6 @@