@eeacms/volto-clms-theme 1.0.119 → 1.0.120

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,6 +4,20 @@ 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
+ ### [1.0.120](https://github.com/eea/volto-clms-theme/compare/1.0.119...1.0.120) - 2 September 2022
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: use plain a for EU Login URL [Mikel Larreategi - [`e8d2d66`](https://github.com/eea/volto-clms-theme/commit/e8d2d664e750df517a8d955c4833a70e0f8b34e3)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - Map login button fix [rodriama - [`0e7e520`](https://github.com/eea/volto-clms-theme/commit/0e7e520ac2515846b4af6e782a9f4cdc2375a467)]
16
+ - Card doc fix [rodriama - [`556e33c`](https://github.com/eea/volto-clms-theme/commit/556e33c833b9980edab3b778fc408e662fd5fffd)]
17
+ - ESLint fix [rodriama - [`d55db81`](https://github.com/eea/volto-clms-theme/commit/d55db818a02be4ccfcc524c1f03005600644a9e4)]
18
+ - Credits pop up fix [rodriama - [`3772c16`](https://github.com/eea/volto-clms-theme/commit/3772c163a0a998a7dc7b0fddd176346f2d56a4e1)]
19
+ - ESLint fix [rodriama - [`08a9bd8`](https://github.com/eea/volto-clms-theme/commit/08a9bd8c3cc78d928df58cc8b66fa3aea81f2b13)]
20
+ - Event detail segment [rodriama - [`524e3ff`](https://github.com/eea/volto-clms-theme/commit/524e3fff130ae53ffb09aa534d120677e5fd1c1a)]
7
21
  ### [1.0.119](https://github.com/eea/volto-clms-theme/compare/1.0.118...1.0.119) - 1 September 2022
8
22
 
9
23
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.119",
3
+ "version": "1.0.120",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -69,6 +69,8 @@ const CclGreenBgView = (props) => {
69
69
  <a
70
70
  className="ccl-banner-info-link"
71
71
  href={'' + data?.locationHref?.[0]?.['@id']}
72
+ target="_blank"
73
+ rel="noreferrer"
72
74
  >
73
75
  More info
74
76
  </a>
@@ -32,6 +32,7 @@ div.tabs-block.CCLCarousel {
32
32
  .text-link-carousel-block {
33
33
  height: 2rem;
34
34
  padding: 0;
35
+ margin-left: 0.5rem;
35
36
  }
36
37
 
37
38
  .text-link-carousel-block-content {
@@ -77,6 +77,7 @@ const CLMSDatasetDetailView = ({ content, token }) => {
77
77
  key={item.id}
78
78
  loading={geonetwork_importation.loading}
79
79
  circular
80
+ style={{ width: '50%' }}
80
81
  >
81
82
  <strong>
82
83
  {item.title} (from {item.type}):{' '}
@@ -203,6 +204,7 @@ const CLMSDatasetDetailView = ({ content, token }) => {
203
204
  key={'wms-layers-import'}
204
205
  loading={wms_layers_importation?.loading}
205
206
  circular
207
+ style={{ width: '50%' }}
206
208
  >
207
209
  <Modal
208
210
  onClose={() => {
@@ -288,17 +290,13 @@ const CLMSDatasetDetailView = ({ content, token }) => {
288
290
  </p>
289
291
  )}
290
292
  </Segment>
291
- </Segment.Group>
292
- )}
293
-
294
- {user?.roles && user.roles.includes('Manager') && (
295
- <Segment.Group compact horizontal>
296
293
  <Segment
297
294
  padded={'very'}
298
295
  color={'olive'}
299
296
  key={'wms-fields-import'}
300
297
  loading={wms_fields_importation?.loading}
301
298
  circular
299
+ style={{ width: '50%' }}
302
300
  >
303
301
  <Modal
304
302
  onClose={() => {
@@ -288,7 +288,13 @@ export const CLMSMeetingView = (props) => {
288
288
  </Segment.Group>
289
289
  )}
290
290
  {content.description}
291
- <Segment compact padded={'very'} color={'olive'} floated="left">
291
+ <Segment
292
+ compact
293
+ padded={'small'}
294
+ color={'olive'}
295
+ floated="right"
296
+ style={{ marginRight: 0 }}
297
+ >
292
298
  <div className="dataset-info-field">
293
299
  <div className="dataset-field-title">
294
300
  <Header>{intl.formatMessage(messages.when)}</Header>
@@ -49,30 +49,30 @@ const CardLink = ({ url, children, className, condition = true }) => {
49
49
  const DocCard = ({ card, url, showEditor, children }) => {
50
50
  return (
51
51
  <>
52
- <div className="card-doc-title">
53
- {card?.Type === 'TechnicalLibrary' ? (
54
- <a href={`${card['@id']}/@@download/file`}>{card?.title}</a>
55
- ) : (
56
- <Link to={url}>{card?.title}</Link>
57
- )}
58
- {card?.Type === 'TechnicalLibrary' && showEditor && (
59
- <Link to={`${url}/edit`}>
60
- <Icon
61
- name={penSVG}
62
- size="15px"
63
- className="circled"
64
- title={'Edit'}
65
- />
66
- </Link>
67
- )}
68
- </div>
69
- <div className="card-doc-text">
70
- <div className="doc-description">{card?.description}</div>
52
+ <div className="card-doc-header">
53
+ <div className="card-doc-title">
54
+ {card?.Type === 'TechnicalLibrary' ? (
55
+ <a href={`${card['@id']}/@@download/file`}>{card?.title}</a>
56
+ ) : (
57
+ <Link to={url}>{card?.title}</Link>
58
+ )}
59
+ {card?.Type === 'TechnicalLibrary' && showEditor && (
60
+ <Link to={`${url}/edit`}>
61
+ <Icon
62
+ name={penSVG}
63
+ size="15px"
64
+ className="circled"
65
+ title={'Edit'}
66
+ />
67
+ </Link>
68
+ )}
69
+ </div>
71
70
  {card?.Type === 'TechnicalLibrary' && (
72
71
  <div className="card-doc-size">{card.getObjSize || ''}</div>
73
72
  )}
74
- {children}
75
73
  </div>
74
+ <div className="card-doc-description">{card?.description}</div>
75
+ {children}
76
76
  </>
77
77
  );
78
78
  };
@@ -375,13 +375,9 @@
375
375
  border-bottom: solid 1px #a0b12833;
376
376
  }
377
377
 
378
- /* Documents */
379
- .card-doc {
380
- padding: 1rem;
381
- }
382
-
383
- .card-doc:not(:last-of-type) {
384
- border-bottom: solid 1px #a0b12833;
378
+ .card-doc-header {
379
+ display: flex;
380
+ justify-content: space-between;
385
381
  }
386
382
 
387
383
  .card-doc-title {
@@ -391,11 +387,6 @@
391
387
  font-weight: bold;
392
388
  }
393
389
 
394
- .card-doc-text {
395
- display: flex;
396
- justify-content: space-between;
397
- }
398
-
399
390
  .card-doc-size {
400
391
  margin-left: 1rem;
401
392
  white-space: nowrap;
@@ -90,12 +90,9 @@ function CclLoginModal(props) {
90
90
  </div>
91
91
  <div className="actions">
92
92
  <div className="modal-buttons">
93
- <UniversalLink
94
- href={loginUrl || '#'}
95
- className="ccl-button ccl-button-green"
96
- >
93
+ <a href={loginUrl || '#'} className="ccl-button ccl-button-green">
97
94
  Login using EU Login
98
- </UniversalLink>
95
+ </a>
99
96
  </div>
100
97
  </div>
101
98
  </CclModal>
@@ -496,7 +496,7 @@
496
496
  .ccl-banner-info {
497
497
  position: absolute;
498
498
  z-index: 1;
499
- right: 0;
499
+ right: 2rem;
500
500
  bottom: 2rem;
501
501
  display: none;
502
502
  width: 100%;
@@ -524,9 +524,7 @@
524
524
  }
525
525
 
526
526
  .ccl-banner-info-link {
527
- display: inline-block;
528
- width: 100%;
529
- text-align: right;
527
+ float: right;
530
528
  }
531
529
 
532
530
  .tabs-block > .styled {
@@ -68,7 +68,6 @@
68
68
 
69
69
  .ccl-banner-top-bar {
70
70
  height: 2rem;
71
- padding: 0 1rem;
72
71
  border-top: 1px solid #6c6e73;
73
72
  border-bottom: 1px solid #6c6e73;
74
73
  background-color: #a0b128;
@@ -91,13 +90,13 @@
91
90
  }
92
91
 
93
92
  .ccl-banner-top-bar .ccl-container .ccl-banner-top-bar-right {
94
- margin-left: 0.5rem;
95
93
  cursor: pointer;
96
94
  }
97
95
 
98
96
  .ccl-banner-top-bar .ccl-container {
99
97
  display: flex;
100
98
  height: 100%;
99
+ padding: 0 2rem;
101
100
  align-items: center;
102
101
  justify-content: space-between;
103
102
  }
@@ -583,7 +583,14 @@
583
583
  margin: 0;
584
584
  background: none;
585
585
  float: none;
586
- font-size: 0.85rem;
586
+ }
587
+
588
+ .login-panel .login-text {
589
+ margin-bottom: 1rem;
590
+ }
591
+
592
+ .login-panel .login-block .ccl-button {
593
+ margin: 0;
587
594
  }
588
595
 
589
596
  #login_close {