Conversation
|
Hey thank you for this, can you add a little bit of padding on the toast? |
|
And please also run |
|
Thank you for this, I will review your code in this afternoon probably, meanwhile can you send me a screenshot of the updated UI? |
|
Thanks for the clarification! Could you please specify what CSS changes you'd like for the toast component? |
|
Sure! I'd like more space between toast container and the right side of the window. And then just send me the result and thats it |
|
Thanks for the clarification! Just to confirm — I will:
No additional spacing changes & styling inside the toast container , correct means keep intact the toast container ? I'll send the updated result once done. |
|
Yeah you said right, I'll wait the result! |




🔍 Description
This pull request introduces a Fun Fact light/toast popup across PhysicsHub simulations to display short, engaging physics facts while users explore simulations.
What this PR adds -
=> A reusable FunFactSlider component with clean UI
=> Auto-dismiss behavior using a timer
=> Contextual physics facts per simulation (via chapters.js)
=> Integration into simulation header/navigation
=> Subtle styling updates for better visual consistency
--This enhancement improves learner engagement without interrupting the simulation experience.
-Closes #12
✅ Checklist --
🎨 Visual Changes (UI-related)
-->Ball Gravity Simulation
-->Displays a fun fact about objects falling at the same rate in a vacuum
-->Appears as a light/toast popup on the top-right
-->Auto-dismisses after a short duration
📸 Screenshot attached


📂 Type of Change ----
✨ New feature
📝 Documentation update
♻️ Refactor
🎨 UI/UX enhancement
🧩 Additional Notes for Reviewers ---
The popup is non-blocking and auto-dismisses to avoid distraction
Component is reusable and easy to extend for future simulations
No breaking changes were introduced
Styling follows the existing PhysicsHub design language
🚀 Final note ---
This feature is intentionally lightweight and designed to scale as more simulations and facts are added.