From 5bc462927a4bd09af48c1359833b25abeacf11ab Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Fri, 9 Apr 2021 01:14:42 +0800 Subject: [PATCH] SimpleImageLink: simplify + use 'src' as last resort - The icon makes the screen too busy when there are lots of images in a page. - Use src as the last resort for the text (I though `title` and `alt` was mandatory in markdown; apparently not). --- ui/component/common/markdown-preview.jsx | 22 ++++++++-------------- ui/scss/component/_markdown-preview.scss | 23 ----------------------- 2 files changed, 8 insertions(+), 37 deletions(-) diff --git a/ui/component/common/markdown-preview.jsx b/ui/component/common/markdown-preview.jsx index a492568b9..fba66eea5 100644 --- a/ui/component/common/markdown-preview.jsx +++ b/ui/component/common/markdown-preview.jsx @@ -15,7 +15,6 @@ import { formattedTimestamp, inlineTimestamp } from 'util/remark-timestamp'; import ZoomableImage from 'component/zoomableImage'; import { CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS, SIMPLE_SITE } from 'config'; import Button from 'component/button'; -import Icon from 'component/common/icon'; import * as ICONS from 'constants/icons'; type SimpleTextProps = { @@ -99,19 +98,14 @@ const SimpleImageLink = (props: ImageLinkProps) => { } return ( -
-
+