summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-form.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-03-03 02:29:45 -0500
committerDessalines <tyhou13@gmx.com>2020-03-03 02:29:45 -0500
commit44bbc459736ac53b9150903af14c20a497caf9ab (patch)
tree0bf8899cfc448e7b70230de52cec9119aa43f011 /ui/src/components/comment-form.tsx
parent5f6f51b549d42943b85d8f7dc9d193aec0935ab6 (diff)
A first pass at adding icons, and tippy tooltips.
- Adding icons for post-listing, comment-node, and navbar. - Adding html titles. - Updating moment expand to use users locale.
Diffstat (limited to 'ui/src/components/comment-form.tsx')
-rw-r--r--ui/src/components/comment-form.tsx14
1 files changed, 10 insertions, 4 deletions
diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx
index eaa054d8..aa8e651d 100644
--- a/ui/src/components/comment-form.tsx
+++ b/ui/src/components/comment-form.tsx
@@ -141,16 +141,22 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
<a
href={markdownHelpUrl}
target="_blank"
- class="d-inline-block float-right text-muted small font-weight-bold"
+ class="d-inline-block float-right text-muted font-weight-bold"
+ title={i18n.t('formatting_help')}
>
- {i18n.t('formatting_help')}
+ <svg class="icon icon-inline">
+ <use xlinkHref="#icon-help-circle"></use>
+ </svg>
</a>
- <form class="d-inline-block mr-2 float-right text-muted small font-weight-bold">
+ <form class="d-inline-block mr-3 float-right text-muted font-weight-bold">
<label
htmlFor={`file-upload-${this.id}`}
className={`${UserService.Instance.user && 'pointer'}`}
+ data-tippy-content={i18n.t('upload_image')}
>
- {i18n.t('upload_image')}
+ <svg class="icon icon-inline">
+ <use xlinkHref="#icon-image"></use>
+ </svg>
</label>
<input
id={`file-upload-${this.id}`}