diff --git a/src/admin/components/other/help-button.vue b/src/admin/components/other/help-button.vue index ee6e31e43..6b0864b80 100644 --- a/src/admin/components/other/help-button.vue +++ b/src/admin/components/other/help-button.vue @@ -6,7 +6,7 @@
{{ title }}
-

{{ message }}

+

{{ (message != '' && message != undefined) ? message : $i18n.get('info_no_description_provided') }}

@@ -46,6 +46,7 @@ export default { .help-tooltip.opened { visibility: visible; opacity: 1; + margin-bottom: 14px; } .help-tooltip { @@ -53,7 +54,7 @@ export default { background-color: #e8f9f5; border: 1px solid #338591; border-radius: 10px; - margin: 0px 0px 14px -37px; + margin: 0px 0px 0px -37px; position: absolute; z-index: 99999999999999; bottom: 100%; @@ -62,7 +63,7 @@ export default { display: block; visibility: hidden; opacity: 0; - transition: opacity 0.3s ease; + transition: opacity 0.4s ease, margin-bottom 0.4s ease; .help-tooltip-header { padding: 0.8em 0.8em 0.6em 0.8em; diff --git a/src/admin/tainacan-admin-i18n.php b/src/admin/tainacan-admin-i18n.php index 16cb0eb87..ab09a77a4 100644 --- a/src/admin/tainacan-admin-i18n.php +++ b/src/admin/tainacan-admin-i18n.php @@ -154,6 +154,7 @@ return [ 'info_not_saved' => __( 'Not saved ', 'tainacan' ), 'info_warning_fields_not_saved' => __('Are you sure? There are fields not saved, changes will be lost.', 'tainacan'), 'info_warning_filters_not_saved' => __('Are you sure? There are filters not saved, changes will be lost.', 'tainacan'), + 'info_no_description_provided' => __('No description provided.', 'tainacan'), // Tainacan Field Types 'tainacan-text' => __( 'Text', 'tainacan' ), diff --git a/src/classes/field-types/tainacan-form-item.vue b/src/classes/field-types/tainacan-form-item.vue index 4cf077009..fed1c28a8 100644 --- a/src/classes/field-types/tainacan-form-item.vue +++ b/src/classes/field-types/tainacan-form-item.vue @@ -1,7 +1,13 @@