This commit is contained in:
parent
5ad77e8a3a
commit
bc3006f3c4
9 changed files with 92 additions and 17 deletions
|
|
@ -233,6 +233,16 @@
|
|||
font-size 1.5em
|
||||
color #717171
|
||||
|
||||
.link
|
||||
&:after
|
||||
content "\f14c"
|
||||
display inline-block
|
||||
padding-left 2px
|
||||
font-family FontAwesome
|
||||
font-size .9em
|
||||
font-weight 400
|
||||
font-style normal
|
||||
|
||||
> mk-url-preview
|
||||
margin-top 8px
|
||||
|
||||
|
|
@ -367,10 +377,10 @@
|
|||
|
||||
// URLをプレビュー
|
||||
tokens
|
||||
.filter(t => t.type == 'link')
|
||||
.filter(t => (t.type == 'url' || t.type == 'link') && !t.silent)
|
||||
.map(t => {
|
||||
riot.mount(this.refs.text.appendChild(document.createElement('mk-url-preview')), {
|
||||
url: t.content
|
||||
url: t.url
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -229,6 +229,16 @@
|
|||
mk-url-preview
|
||||
margin-top 8px
|
||||
|
||||
.link
|
||||
&:after
|
||||
content "\f14c"
|
||||
display inline-block
|
||||
padding-left 2px
|
||||
font-family FontAwesome
|
||||
font-size .9em
|
||||
font-weight 400
|
||||
font-style normal
|
||||
|
||||
> .reply
|
||||
margin-right 8px
|
||||
color #717171
|
||||
|
|
@ -344,10 +354,10 @@
|
|||
|
||||
// URLをプレビュー
|
||||
tokens
|
||||
.filter(t => t.type == 'link')
|
||||
.filter(t => (t.type == 'url' || t.type == 'link') && !t.silent)
|
||||
.map(t => {
|
||||
riot.mount(this.refs.text.appendChild(document.createElement('mk-url-preview')), {
|
||||
url: t.content
|
||||
url: t.url
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue