Skip to content

fix: map not fully displayed#66

Merged
jbuiquan merged 1 commit intomainfrom
fix/map-partially-hidden
Mar 2, 2026
Merged

fix: map not fully displayed#66
jbuiquan merged 1 commit intomainfrom
fix/map-partially-hidden

Conversation

@jbuiquan
Copy link
Collaborator

@jbuiquan jbuiquan commented Feb 26, 2026

Issue #58

  • La carte n'était pas affichée entièrement car le composant sidebar utilisait min-h-svh comme classe.
    Cela mettait une hauteur min de la taille de l'écran c'est donc pour ça qu'il manquait toujours un bout en bas. Etant donné que d'autres elements sont affichés (notamment le Header), la taille de la sidebar dépasse forcément si elle meme fait la taille de l'ecran !
    Idem pour le h-screen dans le fichier Map.tsx.
  • Je suis passé a la valeur plus moderne h-svh pour le RootLayout plutôt que h-screen
    Définition svh : https://tailwindcss.com/docs/height#matching-small-viewport (la taille minimum sans tenir compte des elements d'UI de l'appareil)

Le package-lock.json n'était pas à jour

@jbuiquan jbuiquan requested a review from arnaudfnr February 26, 2026 21:53
@jbuiquan jbuiquan self-assigned this Feb 27, 2026
@jbuiquan jbuiquan linked an issue Feb 27, 2026 that may be closed by this pull request
Comment on lines -2 to +4
import { createMap } from "coordo";
import { type FC, useEffect, useRef, useState } from "react";

import { API_URL } from "@shared/api/client";
import { createMap } from "coordo";
Copy link
Collaborator

@david-bretaud-dev david-bretaud-dev Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's the format on save or the biome ordering that is different than previous configuration with prettier, but you moved createMap which has a ts-expect-error (missing types from coordo)

(which explains why the CI failed)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ok, I didn't see the ts ignore at first.
Yes the formatter moved the import at top and broke the proximity of the ts silence.

Copy link
Collaborator

@david-bretaud-dev david-bretaud-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can rebase, recently Arnaud merged a PR with a lot of missing changes in the lockfile, I think they are the same changes

@jbuiquan jbuiquan force-pushed the fix/map-partially-hidden branch 3 times, most recently from a49b03f to cd929dd Compare March 2, 2026 09:01
@jbuiquan jbuiquan force-pushed the fix/map-partially-hidden branch from cd929dd to 74dde84 Compare March 2, 2026 09:05
@jbuiquan jbuiquan merged commit 6bbdae6 into main Mar 2, 2026
2 checks passed
@jbuiquan jbuiquan deleted the fix/map-partially-hidden branch March 2, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[D4T Frontend] Bug - Map is not displayed fully

2 participants