diff options
author | Dessalines <tyhou13@gmx.com> | 2020-03-03 02:29:45 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-03-03 02:29:45 -0500 |
commit | 44bbc459736ac53b9150903af14c20a497caf9ab (patch) | |
tree | 0bf8899cfc448e7b70230de52cec9119aa43f011 /ui/src/components/iframely-card.tsx | |
parent | 5f6f51b549d42943b85d8f7dc9d193aec0935ab6 (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/iframely-card.tsx')
-rw-r--r-- | ui/src/components/iframely-card.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/components/iframely-card.tsx b/ui/src/components/iframely-card.tsx index 4bae06d1..31929eaf 100644 --- a/ui/src/components/iframely-card.tsx +++ b/ui/src/components/iframely-card.tsx @@ -1,6 +1,7 @@ import { Component, linkEvent } from 'inferno'; import { FramelyData } from '../interfaces'; import { mdToHtml } from '../utils'; +import { i18n } from '../i18next'; interface FramelyCardProps { iframely: FramelyData; @@ -54,6 +55,7 @@ export class IFramelyCard extends Component< <span class="ml-2 pointer text-monospace" onClick={linkEvent(this, this.handleIframeExpand)} + data-tippy-content={i18n.t('expand_here')} > {this.state.expanded ? '[-]' : '[+]'} </span> |