diff --git a/docs/changelog.md b/docs/changelog.md index c6c36644a..0469fd3a4 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,15 @@ # Changelog +3.5.4 (2022-01-20) +------------------ + +**đ Fixes** + +* Do not display empty filters (#518 by @dtrucs) +* Correctly display tags inside list descriptions items (#540 by @dtrucs) +* Sort activities by order defined in API (#539 by @dtrucs) +* Fix sitemap generation when Outdoor module is disabled (by @dtrucs) + 3.5.3 (2021-12-17) ------------------ diff --git a/frontend/package.json b/frontend/package.json index e31997d46..61283b19a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "geotrek-rando-frontend", - "version": "3.5.3", + "version": "3.5.4", "private": true, "scripts": { "debug": "NODE_OPTIONS='--inspect' next ./src", diff --git a/frontend/src/components/pages/details/components/DetailsDescription/DetailsDescription.tsx b/frontend/src/components/pages/details/components/DetailsDescription/DetailsDescription.tsx index b8538e790..0dd690dd9 100644 --- a/frontend/src/components/pages/details/components/DetailsDescription/DetailsDescription.tsx +++ b/frontend/src/components/pages/details/components/DetailsDescription/DetailsDescription.tsx @@ -92,23 +92,26 @@ const StyledListWithSteps = styled(HtmlText)` } & > ol > li { counter-increment: item; - display: flex; - align-items: center; - padding-top: ${getSpacing(4)}; + margin-top: ${getSpacing(4)}; ${desktopOnly(css` - padding-top: ${getSpacing(10)}; + margin-top: ${getSpacing(10)}; `)} + position: relative; + padding-left: ${getSpacing(12)}; } & > ol > li:first-child { - padding: 0; + margin-top: 0; } & > ol > li::before { + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); font-size: 14px; content: counter(item); border-radius: 100%; width: ${getSpacing(6.5)}; height: ${getSpacing(6.5)}; - flex: none; margin-right: ${getSpacing(3.5)}; color: white; background-color: ${colorPalette.redMarker}; diff --git a/frontend/src/components/pages/details/components/DetailsDescription/__tests__/__snapshots__/DetailsDescription.test.tsx.snap b/frontend/src/components/pages/details/components/DetailsDescription/__tests__/__snapshots__/DetailsDescription.test.tsx.snap index 9e1d5de87..4e9b4b217 100644 --- a/frontend/src/components/pages/details/components/DetailsDescription/__tests__/__snapshots__/DetailsDescription.test.tsx.snap +++ b/frontend/src/components/pages/details/components/DetailsDescription/__tests__/__snapshots__/DetailsDescription.test.tsx.snap @@ -23,7 +23,7 @@ Object { id="details_descriptionContent" >
Du parking remonter la vallée du Sélé par le sentier qui suit la rive gauche du torrent de Celse NiÚre. AprÚs une longue montée en faux plat, le sentier remonte des lacets raides jusqu'à la jonction avec le sentier du refuge du Sélé (1993 m). @@ -72,7 +72,7 @@ Object { id="details_descriptionContent" >
Du parking remonter la vallée du Sélé par le sentier qui suit la rive gauche du torrent de Celse NiÚre. AprÚs une longue montée en faux plat, le sentier remonte des lacets raides jusqu'à la jonction avec le sentier du refuge du Sélé (1993 m).
diff --git a/frontend/src/components/pages/search/components/FilterBar/ShowFilters.tsx b/frontend/src/components/pages/search/components/FilterBar/ShowFilters.tsx
index 5af6c2008..ac1196a7e 100644
--- a/frontend/src/components/pages/search/components/FilterBar/ShowFilters.tsx
+++ b/frontend/src/components/pages/search/components/FilterBar/ShowFilters.tsx
@@ -10,6 +10,10 @@ interface Props {
}
const ShowFilters: React.FC