From 2db6f35b7c961c50f2320dea6ea71eeecf60f824 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 8 May 2020 13:36:52 -0400 Subject: [PATCH 1/2] Removing button wrapper for comment context. Fixes #702 --- ui/src/components/comment-node.tsx | 48 ++++++++++++++++-------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index ba4301e1..4a063307 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -142,9 +142,11 @@ export class CommentNode extends Component { } >
@@ -249,8 +251,9 @@ export class CommentNode extends Component { this.loadingIcon ) : ( @@ -302,8 +305,9 @@ export class CommentNode extends Component { this.loadingIcon ) : ( @@ -350,8 +354,9 @@ export class CommentNode extends Component { data-tippy-content={i18n.t('view_source')} > @@ -380,8 +385,9 @@ export class CommentNode extends Component { } > @@ -700,19 +706,15 @@ export class CommentNode extends Component { get linkBtn() { let node = this.props.node; return ( - + + + + + ); } From e6717c86acd3156c04355a0797dc0c802d87ea6b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 8 May 2020 14:02:06 -0400 Subject: [PATCH 2/2] Adding support for webp images on the front end. Fixes #703 --- ui/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 2256a0c1..f18d996e 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -210,7 +210,7 @@ export function isMod(modIds: Array, creator_id: number): boolean { } const imageRegex = new RegExp( - /(http)?s?:?(\/\/[^"']*\.(?:jpg|jpeg|gif|png|svg))/ + /(http)?s?:?(\/\/[^"']*\.(?:jpg|jpeg|gif|png|svg|webp))/ ); const videoRegex = new RegExp(`(http)?s?:?(\/\/[^"']*\.(?:mp4))`);