From 1532b131b1a4560ebe919252db31f7bb586792ab Mon Sep 17 00:00:00 2001 From: Teodor Date: Mon, 29 Jan 2024 17:42:51 +0200 Subject: [PATCH 1/5] change UI for advanced search button --- .../manage/Widgets/GeolocationWidget.jsx | 27 ++++++++++--------- src/components/manage/Widgets/public.less | 26 +++++++++++++++--- 2 files changed, 36 insertions(+), 17 deletions(-) diff --git a/src/components/manage/Widgets/GeolocationWidget.jsx b/src/components/manage/Widgets/GeolocationWidget.jsx index 2d732a1..fe6a84c 100644 --- a/src/components/manage/Widgets/GeolocationWidget.jsx +++ b/src/components/manage/Widgets/GeolocationWidget.jsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import PropTypes from 'prop-types'; -import { Grid, Button, Segment } from 'semantic-ui-react'; +import { Grid, Button } from 'semantic-ui-react'; import { defineMessages, injectIntl } from 'react-intl'; import { useSelector, useDispatch } from 'react-redux'; import { FormFieldWrapper, Icon, SidebarPopup } from '@plone/volto/components'; @@ -199,13 +199,17 @@ const GeolocationWidget = (props) => { /> - - + + +
+ +
+
+ - -
+ Date: Mon, 29 Jan 2024 16:48:54 +0100 Subject: [PATCH 2/5] style: Automated code fix --- src/components/manage/Widgets/public.less | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/manage/Widgets/public.less b/src/components/manage/Widgets/public.less index 601b35f..547984e 100644 --- a/src/components/manage/Widgets/public.less +++ b/src/components/manage/Widgets/public.less @@ -4,15 +4,16 @@ } .search-grid-column { - padding-left: 10px; padding-top: 5px; padding-bottom: 5px; + padding-left: 10px; + .advanced-search-button { display: flex !important; - justify-content: center !important; + width: 55%; align-items: center !important; + justify-content: center !important; padding: 7px 10px !important; - width: 55%; border: 2px solid #004b7f !important; background-color: transparent !important; border-radius: 10px !important; From 3645338ddaab8ca8965cdfae4f2ba79837b88fec Mon Sep 17 00:00:00 2001 From: Teodor Date: Tue, 30 Jan 2024 13:49:51 +0200 Subject: [PATCH 3/5] fix search button in metadata section --- src/components/manage/Widgets/public.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/manage/Widgets/public.less b/src/components/manage/Widgets/public.less index 547984e..2e4fea9 100644 --- a/src/components/manage/Widgets/public.less +++ b/src/components/manage/Widgets/public.less @@ -10,7 +10,7 @@ .advanced-search-button { display: flex !important; - width: 55%; + max-width: 110px; align-items: center !important; justify-content: center !important; padding: 7px 10px !important; From 2d6e58a8c03699700cf97ac4046d009298dbbe33 Mon Sep 17 00:00:00 2001 From: David Ichim Date: Mon, 19 Feb 2024 20:45:04 +0200 Subject: [PATCH 4/5] change(button): use volto add-item-button markup - Refs #263695 we can remove custom css in favor of current styling from pastanaga --- .../manage/Widgets/GeolocationWidget.jsx | 30 ++++++++++--------- src/components/manage/Widgets/ListResults.jsx | 2 +- src/components/manage/Widgets/public.less | 25 ---------------- 3 files changed, 17 insertions(+), 40 deletions(-) diff --git a/src/components/manage/Widgets/GeolocationWidget.jsx b/src/components/manage/Widgets/GeolocationWidget.jsx index fe6a84c..77cae3d 100644 --- a/src/components/manage/Widgets/GeolocationWidget.jsx +++ b/src/components/manage/Widgets/GeolocationWidget.jsx @@ -208,20 +208,22 @@ const GeolocationWidget = (props) => { - +
+ +
{item.geonameId} diff --git a/src/components/manage/Widgets/public.less b/src/components/manage/Widgets/public.less index 2e4fea9..659a73f 100644 --- a/src/components/manage/Widgets/public.less +++ b/src/components/manage/Widgets/public.less @@ -3,31 +3,6 @@ vertical-align: sub; } -.search-grid-column { - padding-top: 5px; - padding-bottom: 5px; - padding-left: 10px; - - .advanced-search-button { - display: flex !important; - max-width: 110px; - align-items: center !important; - justify-content: center !important; - padding: 7px 10px !important; - border: 2px solid #004b7f !important; - background-color: transparent !important; - border-radius: 10px !important; - color: #004b7f !important; - cursor: pointer; - font-size: 16px; - opacity: 0.8; - } -} - -.wrapper { - border-bottom: 1px solid #edf1f2 !important; -} - // Temporary style fix .geo-field-wrapper { > .ui.grid .row .twelve.column { From 65b98d1067fde38c3208775be637a3038f64ab34 Mon Sep 17 00:00:00 2001 From: David Ichim Date: Mon, 19 Feb 2024 20:52:01 +0200 Subject: [PATCH 5/5] Updated package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index be1ca4f..b830b60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-widget-geolocation", - "version": "5.1.7", + "version": "5.2.0", "description": "volto-widget-geolocation: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team",