forked from AkkomaGang/admin-fe
Fix displaing emoji from remote packs
This commit is contained in:
parent
d131b5bd88
commit
cea667e0e3
1 changed files with 6 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="!copyToLocalPackName"
|
:disabled="!copyToLocalPackName"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
class="copy-to-local-pack-button"
|
||||||
@click="copyToLocal">{{ $t('emoji.copy') }}</el-button>
|
@click="copyToLocal">{{ $t('emoji.copy') }}</el-button>
|
||||||
<el-button slot="reference" type="primary" class="emoji-button">{{ $t('emoji.copyToLocalPack') }}</el-button>
|
<el-button slot="reference" type="primary" class="emoji-button">{{ $t('emoji.copyToLocalPack') }}</el-button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
@ -102,7 +103,7 @@ export default {
|
||||||
return this.$store.state.emojiPacks.localPacks
|
return this.$store.state.emojiPacks.localPacks
|
||||||
},
|
},
|
||||||
remoteInstance() {
|
remoteInstance() {
|
||||||
return this.$store.state.emojiPacks.remoteInstance
|
return new URL(this.$store.state.emojiPacks.remoteInstance).host
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -167,6 +168,10 @@ export default {
|
||||||
.copy-popover {
|
.copy-popover {
|
||||||
width: 330px
|
width: 330px
|
||||||
}
|
}
|
||||||
|
.copy-to-local-pack-button {
|
||||||
|
margin-top: 15px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
.emoji-buttons {
|
.emoji-buttons {
|
||||||
place-self: center;
|
place-self: center;
|
||||||
min-width: 200px
|
min-width: 200px
|
||||||
|
|
Loading…
Reference in a new issue