wip
This commit is contained in:
@@ -154,21 +154,17 @@ export default Vue.component('misskey-flavored-markdown', {
|
||||
url: token.node.props.url,
|
||||
rel: 'nofollow noopener',
|
||||
},
|
||||
attrs: {
|
||||
style: 'color:var(--link);'
|
||||
}
|
||||
})];
|
||||
}
|
||||
|
||||
case 'link': {
|
||||
return [createElement('a', {
|
||||
attrs: {
|
||||
class: 'link',
|
||||
class: 'link _link',
|
||||
href: token.node.props.url,
|
||||
rel: 'nofollow noopener',
|
||||
target: '_blank',
|
||||
title: token.node.props.url,
|
||||
style: 'color:var(--link);'
|
||||
}
|
||||
}, genEl(token.children))];
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<component :is="hasRoute ? 'router-link' : 'a'" class="mk-url" :[attr]="hasRoute ? url.substr(local.length) : url" :rel="rel" :target="target">
|
||||
<component :is="hasRoute ? 'router-link' : 'a'" class="ieqqeuvs _link" :[attr]="hasRoute ? url.substr(local.length) : url" :rel="rel" :target="target">
|
||||
<template v-if="!self">
|
||||
<span class="schema">{{ schema }}//</span>
|
||||
<span class="hostname">{{ hostname }}</span>
|
||||
@@ -58,7 +58,7 @@ export default Vue.extend({
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.mk-url {
|
||||
.ieqqeuvs {
|
||||
word-break: break-all;
|
||||
|
||||
> .icon {
|
||||
|
Reference in New Issue
Block a user