@eeacms/volto-widget-geolocation 5.1.6 → 5.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,11 +4,25 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- ### [5.1.6](https://github.com/eea/volto-widget-geolocation/compare/5.1.5...5.1.6) - 19 October 2023
7
+ ### [5.1.7](https://github.com/eea/volto-widget-geolocation/compare/5.1.6...5.1.7) - 5 December 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: css of advanced search - ref #260426 [Teodor Voicu - [`8ce7d1d`](https://github.com/eea/volto-widget-geolocation/commit/8ce7d1d916e8b7b1e6127a71f334e9935b5ede85)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`f922cca`](https://github.com/eea/volto-widget-geolocation/commit/f922ccab5b9aaafb4a339ba946d91ee5f20329c9)]
8
16
 
9
17
  #### :hammer_and_wrench: Others
10
18
 
11
- - Update README.md [ana-oprea - [`d7ee9eb`](https://github.com/eea/volto-widget-geolocation/commit/d7ee9eb8d14cc521ac537cc07df5a15371ef1ef5)]
19
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`82bcb17`](https://github.com/eea/volto-widget-geolocation/commit/82bcb1797f3345148c6a603f2e3cc33baf264989)]
20
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`b85472a`](https://github.com/eea/volto-widget-geolocation/commit/b85472ab313d3f93c4e270817a96596ffcd0f544)]
21
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`997043c`](https://github.com/eea/volto-widget-geolocation/commit/997043c4c14b77b2d99c83518843a42c93343075)]
22
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`af80bd8`](https://github.com/eea/volto-widget-geolocation/commit/af80bd8a135ff8cdc7f988ff7392c1612e4383cb)]
23
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`886d02a`](https://github.com/eea/volto-widget-geolocation/commit/886d02a83c00a2cac1ee1f878d5d036e2c28d0fd)]
24
+ ### [5.1.6](https://github.com/eea/volto-widget-geolocation/compare/5.1.5...5.1.6) - 22 October 2023
25
+
12
26
  ### [5.1.5](https://github.com/eea/volto-widget-geolocation/compare/5.1.4...5.1.5) - 17 October 2023
13
27
 
14
28
  #### :house: Internal changes
package/cypress.config.js CHANGED
@@ -2,12 +2,12 @@ const { defineConfig } = require('cypress');
2
2
 
3
3
  module.exports = defineConfig({
4
4
  viewportWidth: 1280,
5
- defaultCommandTimeout: 5000,
5
+ defaultCommandTimeout: 8888,
6
6
  chromeWebSecurity: false,
7
7
  reporter: 'junit',
8
- video: true,
8
+ video: false,
9
9
  retries: {
10
- runMode: 1,
10
+ runMode: 2,
11
11
  openMode: 0,
12
12
  },
13
13
  reporterOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-widget-geolocation",
3
- "version": "5.1.6",
3
+ "version": "5.1.7",
4
4
  "description": "volto-widget-geolocation: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Grid, Button } from 'semantic-ui-react';
3
+ import { Grid, Button, Segment } from 'semantic-ui-react';
4
4
  import { defineMessages, injectIntl } from 'react-intl';
5
5
  import { useSelector, useDispatch } from 'react-redux';
6
6
  import { FormFieldWrapper, Icon, SidebarPopup } from '@plone/volto/components';
@@ -199,26 +199,13 @@ const GeolocationWidget = (props) => {
199
199
  />
200
200
  </Grid.Column>
201
201
  </Grid.Row>
202
- <Grid.Row>
203
- <Grid.Column width="4">
204
- <div className="wrapper">
205
- <label className={'popup-label'}>
206
- {intl.formatMessage(messages.search)}
207
- </label>
208
- </div>
209
- </Grid.Column>
210
- <Grid.Column
211
- width="8"
212
- style={{
213
- display: 'flex',
214
- alignItems: 'center',
215
- justifyContent: 'flex-start',
216
- }}
217
- >
202
+ <Grid.Row stretched>
203
+ <Segment attached className="actions">
218
204
  <Button
219
205
  size="mini"
220
206
  basic
221
207
  primary
208
+ floated="left"
222
209
  onClick={(event) => {
223
210
  setPopup(true);
224
211
  event.preventDefault();
@@ -226,11 +213,15 @@ const GeolocationWidget = (props) => {
226
213
  >
227
214
  <Icon
228
215
  name={zoomSVG}
229
- size="26px"
216
+ size="30px"
217
+ className="addSVG"
230
218
  title={intl.formatMessage(messages.search)}
231
219
  />
232
220
  </Button>
233
- </Grid.Column>
221
+ <label className={'popup-label'}>
222
+ {intl.formatMessage(messages.search)}
223
+ </label>
224
+ </Segment>
234
225
  <SidebarPopup open={isOpenPopup}>
235
226
  <SearchGeoName
236
227
  id={id}
@@ -1,9 +1,14 @@
1
1
  .popup-label {
2
- position: absolute;
3
- margin: 5px 35px;
2
+ position: relative;
4
3
  vertical-align: sub;
5
4
  }
6
5
 
6
+ .ui.attached.segment.actions {
7
+ display: flex;
8
+ align-items: center;
9
+ gap: 1rem;
10
+ }
11
+
7
12
  // Temporary style fix
8
13
  .geo-field-wrapper {
9
14
  > .ui.grid .row .twelve.column {