-
- {name || t('unknown_name')}
-
+
+
+
{[
{
label: t('description'),
value: description,
- testId: 'dataset-description',
+ testId: 'dataset-description'
},
{ label: t('format'), value: format, testId: 'dataset-format' },
{
@@ -379,7 +382,7 @@ const MapMetaData: React.FC
= ({
{/* Resize handle */}
-
= ({
return <>{isCollapsed ? CollapsedMetaData : NonCollapsedMetaData}>;
};
-export default MapMetaData;
\ No newline at end of file
+export default MapMetaData;
diff --git a/apps/frontend/src/app/components/MapView.tsx b/apps/frontend/src/app/components/MapView.tsx
index 6e0ff2bd..c74fd687 100644
--- a/apps/frontend/src/app/components/MapView.tsx
+++ b/apps/frontend/src/app/components/MapView.tsx
@@ -292,10 +292,10 @@ export const changeLayer = (
timestamp?: string,
) => {
if (collection) {
- refreshLayer(map, (collection = true));
+ refreshLayer(map, true);
}
if (timestamp) {
- refreshLayer(map, (collection = false), timestamp);
+ refreshLayer(map, false, timestamp);
}
};
diff --git a/apps/frontend/src/app/components/Sidebar.tsx b/apps/frontend/src/app/components/Sidebar.tsx
index c90ac252..60e00b98 100644
--- a/apps/frontend/src/app/components/Sidebar.tsx
+++ b/apps/frontend/src/app/components/Sidebar.tsx
@@ -45,28 +45,45 @@ const Sidebar = () => {
) : (
<>
-
-

-
+
-

handleLayerChange('default')}
- />
-

+

+
+
+
>
)}
diff --git a/apps/frontend/src/app/styles/MapMetaData.css b/apps/frontend/src/app/styles/MapMetaData.css
index e039e735..2640088c 100644
--- a/apps/frontend/src/app/styles/MapMetaData.css
+++ b/apps/frontend/src/app/styles/MapMetaData.css
@@ -95,7 +95,20 @@
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
+.header-button {
+ background: none;
+ border: none;
+ padding: 0;
+ margin: 0;
+ width: 100%;
+ text-align: left;
+ cursor: pointer;
+}
+.header-button .header {
+ display: flex;
+ align-items: center;
+}
.content {
padding: 12px;
transition: max-height 0.3s ease, opacity 0.3s ease;
diff --git a/apps/frontend/src/app/styles/Sidebar.css b/apps/frontend/src/app/styles/Sidebar.css
index c7f457c4..1e299e00 100644
--- a/apps/frontend/src/app/styles/Sidebar.css
+++ b/apps/frontend/src/app/styles/Sidebar.css
@@ -40,7 +40,15 @@
align-items: center;
outline: none;
}
-
+.sidebar-toggle-button {
+ background: none;
+ border: none;
+ padding: 0;
+ margin: 0;
+ width: auto;
+ height: auto;
+ cursor: pointer;
+}
.icon {
width: 30px;
height: 30px;
@@ -50,7 +58,13 @@
.icon:hover {
transform: scale(1.05);
}
-
+.layer-image-button {
+ border: none;
+ background: none;
+ padding: 0;
+ margin: 0;
+ display: inline-block;
+}
.layer-image {
width: 100%;
height: auto;