Skip to content

Commit

Permalink
Ajoute du scroll sur les liens d'ancre (#562)
Browse files Browse the repository at this point in the history
* add scroll margin to topic anchor links

* update changelog
  • Loading branch information
bellangerq authored Nov 23, 2023
1 parent 8a2b813 commit ef59213
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions confiture-web-app/src/assets/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Tous les changements notables de Ara sont documentés ici avec leur date, leur catégorie (nouvelle fonctionnalité, correction de bug ou autre changement) et leur pull request (PR) associée.

## 23/11/2023

### Corrections 🐛

- Corrige le problème de scroll qui cachait le titre de la thématique lors de l’utilisation des ancres de la barre latérale ([#562](https://github.com/DISIC/Ara/pull/562))

## 16/11/2023

### Corrections 🐛
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,6 @@ const noResults = computed(() => {
.topic-heading {
color: var(--text-action-high-blue-france);
scroll-margin: 5rem;
}
</style>
5 changes: 2 additions & 3 deletions confiture-web-app/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,9 @@ const router = createRouter({
],
history,
scrollBehavior(to) {
if (to.hash) {
return { el: to.hash };
if (!to.hash) {
return { top: 0 };
}
return { top: 0 };
},
});

Expand Down

0 comments on commit ef59213

Please sign in to comment.