mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Fixing css
This commit is contained in:
parent
8e848f38d5
commit
99d0db136c
4 changed files with 7 additions and 9 deletions
|
|
@ -18,7 +18,7 @@ export default class PostBody extends React.Component {
|
|||
this.state = {links: linkData.links, message: linkData.text};
|
||||
}
|
||||
|
||||
getTextNodesIn(nodeIn) {
|
||||
getAllChildNodes(nodeIn) {
|
||||
var textNodes = [];
|
||||
|
||||
function getTextNodes(node) {
|
||||
|
|
@ -35,7 +35,7 @@ export default class PostBody extends React.Component {
|
|||
|
||||
parseEmojis() {
|
||||
twemoji.parse(React.findDOMNode(this), {size: Constants.EMOJI_SIZE});
|
||||
this.getTextNodesIn(React.findDOMNode(this)).forEach((current) => {
|
||||
this.getAllChildNodes(React.findDOMNode(this)).forEach((current) => {
|
||||
global.window.emojify.run(current);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,9 +130,9 @@ div.theme {
|
|||
}
|
||||
|
||||
.emoji {
|
||||
width: 1.5em !important;
|
||||
height: 1.5em !important;
|
||||
display: inline-block !important;
|
||||
margin-bottom: 0.25em !important;
|
||||
background-size: contain !important;
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
display: inline-block;
|
||||
margin-bottom: 0.25em;
|
||||
background-size: contain;
|
||||
}
|
||||
|
|
|
|||
1
web/static/css/emojify.min.css
vendored
1
web/static/css/emojify.min.css
vendored
|
|
@ -1 +0,0 @@
|
|||
.emoji{width:1.5em;height:1.5em;display:inline-block;margin-bottom:-.25em;background-size:contain}
|
||||
|
|
@ -40,7 +40,6 @@
|
|||
|
||||
<script src="/static/js/jquery-dragster/jquery.dragster.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="/static/css/emoji/emojify.min.css" />
|
||||
<script src="/static/js/emojify.min.js"></script>
|
||||
<script>
|
||||
emojify.setConfig({img_dir: '/static/images/emoji'});
|
||||
|
|
|
|||
Loading…
Reference in a new issue