Skip to content

Commit ac49268

Browse files
authored
Merge branch 'master' into snyk-upgrade-7c1ffa09e26f1133acb5c89d5eefc59c
2 parents bc11d00 + 99236e0 commit ac49268

File tree

6 files changed

+89
-51
lines changed

6 files changed

+89
-51
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# react-geo-baseclient #
22

3-
[![Greenkeeper badge](https://badges.greenkeeper.io/terrestris/react-geo-baseclient.svg)](https://greenkeeper.io/)
3+
44

55
## FAQ
66

greenkeeper.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

package-lock.json

Lines changed: 54 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"dependencies": {
5050
"@brainhubeu/react-carousel": "^1.13.40",
5151
"@terrestris/base-util": "^0.2.2",
52-
"@terrestris/mapfish-print-manager": "^5.1.0",
52+
"@terrestris/mapfish-print-manager": "^5.2.0",
5353
"@terrestris/ol-util": "^3.0.1",
5454
"@terrestris/react-geo": "^11.4.4",
5555
"@terrestris/vectortiles": "^0.3.0",
@@ -60,15 +60,15 @@
6060
"moment": "^2.24.0",
6161
"object-fit-polyfill": "^0.1.0",
6262
"ol": "^5.3.3",
63-
"react": "^16.12.0",
64-
"react-dom": "^16.12.0",
63+
"react": "^16.13.1",
64+
"react-dom": "^16.13.1",
6565
"react-i18next": "^11.3.5",
66-
"react-redux": "^7.1.3",
66+
"react-redux": "^7.2.0",
6767
"redux": "^4.0.4",
6868
"redux-async-initial-state": "^0.3.0",
6969
"redux-thunk": "^2.3.0",
70-
"redux-undo": "^1.0.0",
71-
"tslib": "^1.11.1"
70+
"tslib": "^1.11.1",
71+
"redux-undo": "^1.0.1"
7272
},
7373
"devDependencies": {
7474
"@babel/core": "^7.7.4",

src/component/container/Footer/Footer.less

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,26 @@
1111
}
1212

1313
.scalecombo-col {
14+
@media only screen and (max-width: 768px) {
15+
display: none;
16+
}
1417
float: left;
1518
> span {
1619
padding-right: 5px;
1720
}
1821

1922
.scalecombo {
23+
@media only screen and (max-width: 768px) {
24+
display: none;
25+
}
2026
width: 150px !important;
2127
}
2228
}
2329

2430
.crscombo-col {
31+
@media only screen and (max-width: 768px) {
32+
display: none;
33+
}
2534
padding-left: 5px;
2635
> span {
2736
padding-right: 5px;
@@ -33,6 +42,9 @@
3342
}
3443

3544
.ol-mouse-position {
45+
@media only screen and (max-width: 768px) {
46+
display: none;
47+
}
3648
top: 0;
3749
right: 0;
3850
position: inherit;
@@ -41,10 +53,18 @@
4153

4254
.imprint {
4355
justify-content: center;
56+
57+
@media only screen and (max-width: 768px) {
58+
width: 100%;
59+
float: right;
60+
}
4461
}
4562
}
4663

4764
#mouse-position {
65+
@media only screen and (max-width: 768px) {
66+
display: none;
67+
}
4868
justify-content: flex-start;
4969
margin-right: 5px;
5070
}

src/component/container/Footer/Footer.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import MapUtil from '@terrestris/ol-util/dist/MapUtil/MapUtil';
2424

2525
// default props
2626
interface DefaultFooterProps {
27+
imprintLink: string,
28+
imprintText: string
2729
}
2830

2931
interface FooterProps extends Partial<DefaultFooterProps>{
@@ -73,7 +75,6 @@ export class Footer extends React.Component<FooterProps, FooterState> {
7375
*/
7476
constructor(props: FooterProps) {
7577
super(props);
76-
7778
this.setProjection = this.setProjection.bind(this);
7879
}
7980

@@ -194,6 +195,8 @@ export class Footer extends React.Component<FooterProps, FooterState> {
194195
map,
195196
mapScales,
196197
projection,
198+
imprintLink,
199+
imprintText,
197200
t
198201
} = this.props;
199202

@@ -238,7 +241,10 @@ export class Footer extends React.Component<FooterProps, FooterState> {
238241
span={4}
239242
className="imprint footer-element"
240243
>
241-
<a>{t('Imprint.title')} / {t('Imprint.privacypolicy')}</a>
244+
<a
245+
href={imprintLink ? imprintLink : 'https://www.terrestris.de/en/impressum'}
246+
>
247+
{imprintText ? imprintText : `${t('Imprint.title')} / ${t('Imprint.privacypolicy')}`}</a>
242248
</Col>
243249
</Row>
244250
</footer>

0 commit comments

Comments
 (0)