diff --git a/webui/src/components/CommentInput/CommentInput.tsx b/webui/src/components/CommentInput/CommentInput.tsx index c0e3edfc3699534d72d3b6899507d0f76cfdf8b3..babd495ca834fecc8ae7cc65861eab3e61ce62ae 100644 --- a/webui/src/components/CommentInput/CommentInput.tsx +++ b/webui/src/components/CommentInput/CommentInput.tsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from 'react'; +import { Typography } from '@material-ui/core'; import Tab from '@material-ui/core/Tab'; import Tabs from '@material-ui/core/Tabs'; import TextField from '@material-ui/core/TextField'; @@ -28,6 +29,10 @@ const useStyles = makeStyles((theme) => ({ borderBottom: `solid 3px ${theme.palette.grey['200']}`, minHeight: '5rem', }, + previewPlaceholder: { + color: theme.palette.text.secondary, + fontStyle: 'italic', + }, })); type TabPanelProps = { @@ -103,7 +108,13 @@ function CommentInput({ inputProps, inputText, loading, onChange }: Props) { /> - + {input !== '' ? ( + + ) : ( + + Nothing to preview. + + )} diff --git a/webui/src/pages/bug/Message.tsx b/webui/src/pages/bug/Message.tsx index bf7792084f39d56d493e74e7c8091dee58e1b472..51087faa382529472efdf040dc63ca172d6d615f 100644 --- a/webui/src/pages/bug/Message.tsx +++ b/webui/src/pages/bug/Message.tsx @@ -157,7 +157,11 @@ function Message({ bug, op }: Props) {
- + {comment.message !== '' ? ( + + ) : ( + + )}
); diff --git a/webui/src/pages/bug/MessageHistoryDialog.tsx b/webui/src/pages/bug/MessageHistoryDialog.tsx index 1571958025ee218ead343252f2c8cc9c0165fa40..df8915d9cfc74eb7feb1f0ffc5cae836ebacbf76 100644 --- a/webui/src/pages/bug/MessageHistoryDialog.tsx +++ b/webui/src/pages/bug/MessageHistoryDialog.tsx @@ -230,7 +230,11 @@ function MessageHistoryDialog({ bugId, commentId, open, onClose }: Props) { {getSummary(index, edit.date)} - + {edit.message !== '' ? ( + + ) : ( + + )} ))}