Skip to content

PB-543 : fix Cesium CSS spillover#872

Merged
pakb merged 3 commits intodevelopfrom
bug_PB-543_fix_cesium_css_spillover
May 31, 2024
Merged

PB-543 : fix Cesium CSS spillover#872
pakb merged 3 commits intodevelopfrom
bug_PB-543_fix_cesium_css_spillover

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented May 28, 2024

Cesium CSS was altering how our buttons were shown, adding some padding or margins there and there. As we were importing the Cesium CSS file just to place the canvas (and its Cesium generated parent divs) correctly, I've switched to declare this CSS ourselves and remove the import of the Cesium CSS file.

Also removing a couple wrapping divs in the Cesium component that are not useful, as they clutter our "real" DOM with many empty divs

Test link

@github-actions github-actions bot added the bug label May 28, 2024
@pakb pakb requested review from ltkum and schtibe May 28, 2024 17:57
@cypress
Copy link

cypress bot commented May 28, 2024

Passing run #2369 ↗︎

0 207 20 0 Flakiness 0

Details:

fix test after change in PB-549
Project: web-mapviewer Commit: f8c7f076f6
Status: Passed Duration: 05:50 💡
Started: May 31, 2024 12:55 PM Ended: May 31, 2024 1:00 PM

Review all test suite changes for PR #872 ↗︎

@pakb pakb force-pushed the bug_PB-543_fix_cesium_css_spillover branch from ee19c4b to 48d531f Compare May 30, 2024 12:25
Copy link
Contributor

@schtibe schtibe left a comment

Choose a reason for hiding this comment

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

Looking good! 👍 I wonder if we now could possibly revert #830, but maybe it's not even that important.

@pakb pakb force-pushed the bug_PB-543_fix_cesium_css_spillover branch from 48d531f to 589b4ae Compare May 31, 2024 12:16
@pakb
Copy link
Contributor Author

pakb commented May 31, 2024

Looking good! 👍 I wonder if we now could possibly revert #830, but maybe it's not even that important.

I think we could, but that's not a big deal to keep it there too

pakb added 2 commits May 31, 2024 14:27
Cesium CSS was altering how our buttons were shown, adding some padding or margins there and there. As we were importing the Cesium CSS file just to place the canvas (and its Cesium generated parent divs) correctly, I've switched to declare this CSS ourselves and remove the import of the Cesium CSS file.

Also removing a couple wrapping divs in the Cesium component that are not useful, as they clutter our "real" DOM with many empty divs
making the inject a factory method, so it won't be computed at startup (on mount) but only the first time it is being used
@pakb pakb force-pushed the bug_PB-543_fix_cesium_css_spillover branch from 589b4ae to 5ae2a0b Compare May 31, 2024 12:27
@pakb pakb merged commit 5d921d2 into develop May 31, 2024
@pakb pakb deleted the bug_PB-543_fix_cesium_css_spillover branch May 31, 2024 13:02
@cypress cypress bot mentioned this pull request May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants