corrected the bug of navbar logo hovering effect #1912
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
Closes: #1903
Description
This PR fixes the issue where the navbar logo goes out of the navbar when hovered, as described in issue #1903 . The problem was that the logo's hover effect caused it to exceed the navbar bounds and overlap with the text.
Fix:
Added CSS styling to scale the logo on hover without exceeding the navbar bounds.
Updated the header class to include overflow: hidden; to prevent elements from exceeding its boundaries.
Added margin to the text elements adjacent to the logo to prevent overlap when the logo is hovered.
Screenshots
Provide screenshots to preview the changes.
Checklist
My code adheres to the established style guidelines of the project.
I have included comments in areas that may be difficult to understand.
My changes have not introduced any new warnings.
I have conducted a self-review of my code.