diff --git a/docs/src/demos/Experiments/GenericFigure/index.vue b/docs/src/demos/Experiments/GenericFigure/index.vue index ad20d24e..add725bd 100644 --- a/docs/src/demos/Experiments/GenericFigure/index.vue +++ b/docs/src/demos/Experiments/GenericFigure/index.vue @@ -29,12 +29,12 @@ import { Figcaption } from './figcaption' const ImageFigure = Figure.extend({ name: 'capturedImage', - content: 'image figcaption', + content: 'figcaption image', }) const TableFigure = Figure.extend({ name: 'capturedTable', - content: 'table figcaption', + content: 'figcaption table', }) export default { @@ -56,12 +56,6 @@ export default { .insertContent({ type: 'capturedImage', content: [ - { - type: 'image', - attrs: { - src: 'https://source.unsplash.com/K9QHL52rE2k/800x400', - }, - }, { type: 'figcaption', content: [ @@ -71,6 +65,12 @@ export default { }, ], }, + { + type: 'image', + attrs: { + src: 'https://source.unsplash.com/K9QHL52rE2k/800x400', + }, + }, ], }) .run() @@ -83,6 +83,15 @@ export default { .insertContent({ type: 'capturedTable', content: [ + { + type: 'figcaption', + content: [ + { + type: 'text', + text: 'table caption', + }, + ], + }, { type: 'table', content: [ @@ -121,15 +130,6 @@ export default { }, ], }, - { - type: 'figcaption', - content: [ - { - type: 'text', - text: 'table caption', - }, - ], - }, ], }) .run() @@ -168,15 +168,18 @@ export default { content: `

Some text

- Random photo of something
Image caption
+ Random photo of something

Some text

Some text

+
+ Table caption +
@@ -202,9 +205,6 @@ export default {
-
- Table caption -

Some text

@@ -258,11 +258,19 @@ export default { } figcaption { - margin-top: 0.25rem; + margin: 0.25rem 0; text-align: center; padding: 0.5rem; border: 2px dashed #0D0D0D20; border-radius: 0.5rem; + + &:first-child { + margin-top: 0; + } + + &:last-child { + margin-bottom: 0; + } } img {