-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix SVG text overlap on small screens #1300
base: sepolia
Are you sure you want to change the base?
Conversation
* Add community page * Fix search params * Adjust mobile style * Update link * Fix label * Adjust style * Adjust styles * Add og image * Adjust camera position * Adjust style
* Update config
fix: allow new tab
Signed-off-by: yqrashawn <[email protected]>
Fix: Use BigInt for handling large numbers to avoid scientific notation.
doc: add canvas doc
fix: ecosystem metrics
* Update copy * Update style * Adjust font size
…-issuer Upgradable badge issuer
Co-authored-by: Sourav Gupta <[email protected]>
fix: display total tx count
* Add more assets * Update Mitosis link * Add logo for Mitosis * fix: project url * Update openblock api * adjust find token logic --------- Co-authored-by: holybasil <[email protected]>
Pull Request: Fix for SVG and Text Overlap on Small Screens Fix: |
5975871
to
b86453d
Compare
Issue Description:
There was a bug identified on the Scroll Network frontend where the text overlaps with an SVG on screens smaller than 600px. Specifically, the overlap occurs near the "Mainnet Housewarming Party" section on the index page. On screens that are exactly 600px wide, the issue is not present, but once the screen width drops to 599px or smaller, the text and SVG elements start overlapping, causing display issues.
Fix Description:
To resolve this issue, I modified the CSS for the affected element by adjusting the height. The height of the container holding the SVG was changed to 15rem or higher, ensuring that there is enough space for both the text and the SVG on smaller screens. This change prevents the overlap and provides a more consistent and user-friendly display across different screen sizes.
Here’s the key change applied:
@media (max-width: 600px) { .svg-container { height: 15rem; /* Adjusted to prevent overlap */ margin-top: 20px; /* Added margin to improve spacing */ } }
By making this adjustment, the overlapping issue is fixed, and the layout behaves as expected on smaller screens.