diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-07 12:49:54 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-07 18:41:47 +0300 |
| commit | a2459c2187bc051c18715591119a48ccb0f308e7 (patch) | |
| tree | f7b9fbd5576f4ff1a0128fc93aed69b81c7dbd04 /src/components/rich_content/rich_content.jsx | |
| parent | be79643bcf6f05df500f0d6bcb773f07dd15da3d (diff) | |
move styles to richcontent
Diffstat (limited to 'src/components/rich_content/rich_content.jsx')
| -rw-r--r-- | src/components/rich_content/rich_content.jsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index a5c010de..7bff23cd 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -19,7 +19,8 @@ export default Vue.component('RichContent', { }, render (h) { const renderImage = (tag) => { - return <StillImage {...{ attrs: getAttrs(tag) }} /> + const attrs = getAttrs(tag) + return <StillImage {...{ attrs }} class="img"/> } const structure = convertHtml(this.html) const processItem = (item) => { @@ -30,7 +31,7 @@ export default Vue.component('RichContent', { this.emoji, ({ shortcode, url }) => { return <StillImage - class="emoji" + class="emoji img" src={url} title={`:${shortcode}:`} alt={`:${shortcode}:`} @@ -56,8 +57,8 @@ export default Vue.component('RichContent', { } } } - return <div> + return <span class="RichContent"> { structure.map(processItem) } - </div> + </span> } }) |
