File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -992,10 +992,17 @@ export default {
992992<template>
993993 <div>
994994 <NcButton @click="showModal">Show Modal</NcButton>
995- <NcModal v-if="modal" @close="closeModal" size="small" class="emoji-modal">
996- <NcEmojiPicker container=".emoji-modal" @select="select">
997- <NcButton>Select emoji {{ emoji }}</NcButton>
998- </NcEmojiPicker>
995+ <NcModal
996+ v-model:show="modal"
997+ class="emoji-modal"
998+ name="Modal with popover"
999+ size="small"
1000+ @close="closeModal">
1001+ <div class="emoji-modal__content">
1002+ <NcEmojiPicker container=".emoji-modal" @select="select">
1003+ <NcButton>Select emoji {{ emoji }}</NcButton>
1004+ </NcEmojiPicker>
1005+ </div>
9991006 </NcModal>
10001007 </div>
10011008</template>
@@ -1021,9 +1028,10 @@ export default {
10211028}
10221029</script>
10231030<style scoped>
1024- .modal__content {
1025- margin: 50px;
1026- text-align: center;
1031+ .emoji-modal__content {
1032+ display: flex;
1033+ justify-content: center;
1034+ margin: 20px 0px 100px;
10271035}
10281036</style>
10291037```
You can’t perform that action at this time.
0 commit comments