diff --git a/src/admin/components/lists/filters-list.vue b/src/admin/components/lists/filters-list.vue index 7f3aef271..f3acb6d3f 100644 --- a/src/admin/components/lists/filters-list.vue +++ b/src/admin/components/lists/filters-list.vue @@ -255,7 +255,7 @@ :key="index" @click="onFilterTypeSelected(filterType)" @mouseover="currentFilterTypePreview = { name: filterType.name, template: filterType.preview_template }" - @mouseleave="currentFilterTypePreview = undefined"> + @mouseleave="currentFilterTypePreview = { name: filterType.name, template: filterType.preview_template }">

{{ filterType.name }}

@@ -1102,6 +1102,30 @@ export default { text-decoration: underline; margin: 0.875rem 1.5rem; } + + .numeric-filter-container { + display: flex; + .field { margin: 0; } + .dropdown { + width: auto; + + .dropdown-trigger button { + padding: 0 0.5rem !important; + height: 28px !important; + + i:not(.tainacan-icon-arrowdown) { + margin-top: -3px; + font-size: 1.5rem; + font-style: normal; + color: #555758; + } + } + .dropdown-menu { + display: block !important; + } + } + } + } } diff --git a/src/admin/scss/_modals.scss b/src/admin/scss/_modals.scss index 4282afce5..8c3fce6b5 100644 --- a/src/admin/scss/_modals.scss +++ b/src/admin/scss/_modals.scss @@ -53,6 +53,7 @@ border-radius: 0px; background-color: white; padding: 40px $page-side-padding; + padding: 40px 4.166666667vw; position: relative; overflow-y: auto; overflow-x: hidden; diff --git a/src/admin/tainacan-admin-i18n.php b/src/admin/tainacan-admin-i18n.php index 60d0658c6..771560b61 100644 --- a/src/admin/tainacan-admin-i18n.php +++ b/src/admin/tainacan-admin-i18n.php @@ -406,6 +406,7 @@ return apply_filters( 'tainacan-admin-i18n', [ 'label_plugin_home_page' => __( 'Plugin home page', 'tainacan' ), 'label_wordpress_admin_page' => __( 'WordPress Admin Page', 'tainacan' ), 'label_view_all_%s_collections' => __( 'View all %s collections', 'tainacan' ), + 'label_comparator' => __( 'Comparator', 'tainacan' ), // Instructions. More complex sentences to guide user and placeholders 'instruction_delete_selected_collections' => __( 'Delete selected collections', 'tainacan' ), diff --git a/src/classes/filter-types/numeric/class-tainacan-numeric.php b/src/classes/filter-types/numeric/class-tainacan-numeric.php index 906d3267f..20ec8a9bb 100644 --- a/src/classes/filter-types/numeric/class-tainacan-numeric.php +++ b/src/classes/filter-types/numeric/class-tainacan-numeric.php @@ -14,9 +14,52 @@ class Numeric extends Filter_Type { $this->set_component('tainacan-filter-numeric'); $this->set_preview_template('
-
- -
+
+
+ +
+

+ +

+
+ +
+

+ +

+
+
+
'); }