@geops/rvf-mobility-web-component 0.1.39 → 0.1.41

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@geops/rvf-mobility-web-component",
3
3
  "license": "UNLICENSED",
4
4
  "description": "Web components for rvf in the domains of mobility and logistics.",
5
- "version": "0.1.39",
5
+ "version": "0.1.41",
6
6
  "homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
7
7
  "type": "module",
8
8
  "main": "index.js",
@@ -55,21 +55,25 @@ function RvfNotificationDetails({ feature }: { feature: Feature }) {
55
55
  </RvfLink>
56
56
  );
57
57
  })}
58
- <div className={"font-bold"}>Betroffened Lines:</div>
59
- <div className={"flex flex-wrap gap-1"}>
60
- {products?.map(({ name }) => {
61
- return (
62
- <div
63
- className={
64
- "rounded-md bg-red px-[12px] py-[9px] font-bold leading-none text-white"
65
- }
66
- key={name}
67
- >
68
- {name}
69
- </div>
70
- );
71
- })}
72
- </div>
58
+ {!!products?.length && (
59
+ <>
60
+ <div className={"font-bold"}>Betroffene Lines:</div>
61
+ <div className={"flex flex-wrap gap-1"}>
62
+ {products?.map(({ name }) => {
63
+ return (
64
+ <div
65
+ className={
66
+ "rounded-md bg-red px-[12px] py-[9px] font-bold leading-none text-white"
67
+ }
68
+ key={name}
69
+ >
70
+ {name}
71
+ </div>
72
+ );
73
+ })}
74
+ </div>
75
+ </>
76
+ )}
73
77
  </div>
74
78
  );
75
79
  }
@@ -702,7 +702,13 @@ function RvfMobilityMap({
702
702
 
703
703
  {!hasToolbar && hasPrint && isExportMenuOpen && (
704
704
  <Modal onClose={onExportMenuClose}>
705
- <RvfExportMenu className="relative flex h-full flex-col overflow-y-auto overflow-x-hidden p-2" />
705
+ <RvfOverlayHeader
706
+ onClose={() => {
707
+ setIsExportMenuOpen(false);
708
+ }}
709
+ title="Drucken"
710
+ ></RvfOverlayHeader>
711
+ <RvfExportMenu className="relative flex flex-col gap-4 overflow-y-auto overflow-x-hidden px-4 py-6" />
706
712
  </Modal>
707
713
  )}
708
714
  </div>