Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alertes – Corrige la sélection de façade lorsque l'on ouvre une alerte à partir de la fiche navire #3631

Merged

Conversation

ivangabriele
Copy link
Member

@ivangabriele ivangabriele added the bug Something isn't working label Sep 9, 2024
@ivangabriele ivangabriele force-pushed the ivan/fix-alerts-opening-from-main-window-vessel-card branch from 56432fd to 5ff6f08 Compare September 10, 2024 08:18
@ivangabriele ivangabriele marked this pull request as ready for review September 10, 2024 08:47
Copy link

sonarcloud bot commented Sep 10, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
201 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -117,16 +117,19 @@ const Layers = styled.div<{
max-height: calc(100vh - ${p => (p.$hasHealthcheckTextWarning ? '210px' : '160px')});
`

const SidebarLayersButton = styled(MapButton)`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pourquoi tu n'aime pas tout mettre dans MapButton ? ça permet d'avoir dans un seul endroit :

margin-top: ${p => (p.$hasHealthcheckTextWarning ? 50 : 0)}px;

C'est plus facile à refacto non ?

Copy link
Member Author

@ivangabriele ivangabriele Sep 10, 2024

Choose a reason for hiding this comment

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

C'est parce que j'ai galéré un poil à fixer ce soucis de <button> dans un <button> et c'était la manière de faire que j'ai trouvé la plus simple. Si je passe simplement un span ou un div ça casse tout le positionning.

Mais je suis d'accord que c'est mieux d'avoir un bouton commun. Par contre je te propose de plutôt faire ça dans #3131 si ça te va ? (j'ai presque fini de rebase cette vieille PR pendant qu'on faisait le weekly)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah oui d'acc on pourra voir ça dans la #3131

@ivangabriele ivangabriele merged commit 2a74ebe into master Sep 10, 2024
26 checks passed
@ivangabriele ivangabriele deleted the ivan/fix-alerts-opening-from-main-window-vessel-card branch September 10, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants