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

Fix navbar links alignment #69

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

erdnaxe
Copy link
Contributor

@erdnaxe erdnaxe commented Mar 7, 2024

span and i elements shouldn't be displayed as blocks in Bootstrap, but as inline elements.
Displaying them as block can cause some misalignment when a CTF admin overrides the navbar template to add other buttons without tooltips.

This pull request proposes to switch to inline elements to make the navbar less ugly to override.

Demo with left button after patch and right button before patch:
image

@ColdHeat
Copy link
Member

When I test this change I don't see as big of an offset as in your screenshot but if this is useful to you and there doesn't seem to be a change for the current use case it's probably okay.

@ColdHeat ColdHeat merged commit 9935b6f into CTFd:main Mar 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants