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

SVG images are not displayed correctly on some pages #3277

Open
universewrld opened this issue Oct 20, 2024 · 3 comments
Open

SVG images are not displayed correctly on some pages #3277

universewrld opened this issue Oct 20, 2024 · 3 comments

Comments

@universewrld
Copy link

I found that on the default @joomla Login page, if 2-FA is enabled on the website, the SVG login icon for 2-FA is displayed incorrectly in my template on @gantry 5:

antry-login1

at the same time, in the default Cassiopeia Joomla template there is no such problem with displaying this icon:

gantry-login2

also SVG icons are displayed incorrectly on the 404 Error page in my Gantry template:

gantry-login5

on all other pages of my Gantry template, SVG icons in the drop-down menu are displayed as expected:

gantry-login6

yes, this is a bug in Gantry with displaying SVG icons on some types of pages, because the default Cassiopeia template from Joomla has no problem displaying SVG icons on the same pages.

Joomla 5.2, Gantry 5.5.19

@N8Solutions
Copy link

Yes, this is a problem. I've usually just corrected it on my own by adding css to the custom.scss file. However, it should be fixed.

@N8Solutions
Copy link

N8Solutions commented Oct 22, 2024

As an FYI for you @universewrld, and anyone else who finds this. This issue can easily be fixed by adding the following code to your custom.scss file. For anyone not familiar with how to do this, you can refer to the Gantry 5 documentation here.

// Fix SVG icon size in buttons
.plg_system_webauthn_login_button {
	svg {
		width: 30px;
		margin: 4px;
	}
}
svg {
  vertical-align: middle;
}

Also, depending on the template, this styling may also need to be adjusted so there is symmetry with the padding above and below the SVG icon inside the button.

.login {
	.plg_system_webauthn_login_button {
		padding: 0.9rem 0rem;
		min-height: 60px;
	}
}

Tagging @hexplor so he can add this to the next update of Gantry 5.

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

No branches or pull requests

3 participants
@universewrld @N8Solutions and others