diff --git a/docs/docs/twemoji-picker-api/index.md b/docs/docs/twemoji-picker-api/index.md index 5f229e73..d814959a 100644 --- a/docs/docs/twemoji-picker-api/index.md +++ b/docs/docs/twemoji-picker-api/index.md @@ -49,6 +49,13 @@ Define the picker will attempt to flip to the opposite side if it does not fit a Define the picker will close itself when clicking outside its boundaries. +### pickerPaddingOffset +- Version: 5.6.1 onwards +- Type: ``boolean`` +- Default: ``false`` + +Defines if the picker should have an extra padding top/bottom. Useful when the picker is combined with a textarea. + ### triggerType - Type: ``string`` - Default: ``'click'`` diff --git a/package.json b/package.json index f43eb80f..e75c5d33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevinfaguiar/vue-twemoji-picker", - "version": "5.6.0", + "version": "5.6.1", "main": "dist/vue-twemoji-picker.umd.min.js", "module": "dist/vue-twemoji-picker.esm.min.js", "unpkg": "dist/vue-twemoji-picker.min.js", diff --git a/src/components/PopupEmoji.vue b/src/components/PopupEmoji.vue index 96c6e141..e875184f 100644 --- a/src/components/PopupEmoji.vue +++ b/src/components/PopupEmoji.vue @@ -14,14 +14,14 @@ - - + @@ -51,6 +51,10 @@ } } +#popper-button { + display: inline-block; +} + #arrow { position: absolute; z-index: -1; @@ -71,32 +75,53 @@ padding-right: 32px; } +#popper-container[data-popper-placement^='top-start'] > #arrow { + bottom: 12px; + padding-right: 20px; +} + #popper-container[data-popper-placement^='bottom'] > #arrow { top: -12px; padding-right: 32px; } +#popper-container[data-popper-placement^='bottom-start'] > #arrow { + top: -12px; + padding-right: 20px; +} + #popper-container[data-popper-placement^='left'] > #arrow { right: 12px; padding-bottom: 32px; } +#popper-container[data-popper-placement^='left-start'] > #arrow { + right: 12px; + padding-bottom: 5px; +} + #popper-container[data-popper-placement^='right'] > #arrow { left: -12px; padding-bottom: 32px; } + +#popper-container[data-popper-placement^='right-start'] > #arrow { + left: -12px; + padding-bottom: 5px; +} diff --git a/src/components/Sandbox.vue b/src/components/Sandbox.vue index ccf40ff2..d881aa45 100644 --- a/src/components/Sandbox.vue +++ b/src/components/Sandbox.vue @@ -1,13 +1,13 @@