-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Star glyph not rendering correctly #4515
Comments
This is because you don't have a font installed with the necessary glyph in it. |
It does render right on my private gitea instance but it is broken on the try.gitea instance. Edit: Fa version is the same, weird @bkcsoft people shouldn't need to install a font to see that icon. |
I was under the impression that these were font awesome webfont glyphs (not requiring locally installed fonts). Which font would I be missing? Client OS is Windows 10 Build 1803. |
I am confused because it literally differs per webpage within the same browser, fontawesome seems to be the exact same across the two webpages. |
Like I mentioned earlier, it looks to me like an encoding issue of sorts. |
@Wqrld could you provide different page where it differ ? |
If you refer to the repo listing it use the |
I tested a little and only the star is not displayed. Every other content seems to work.
Strangely, the vendor folder doesn't seems to be touched since 11 month. |
@sapk it works on my instance, https://git.feroxmc.ga/Wqrld/Bungee for example (not sure if you can see it) |
It was grabbed from docker a couple days ago, that's weird. but okay. |
Same issue here (Docker setup, latest as of now), also had a look at the CSS and same experience here, other "content" values work... even when clicked (e.g. starred), the icon works as it changes the CSS class to .fa-star instead of .fa-star-o...so it seems to be a specific issue with that icon.
That actually wasn't the case, if you look at it seems the .icon {
font-family: "FontAwesome" !important;
} |
fix go-gitea#4515 fix by excide, im just PR-ing it
good fix for go-gitea#4515 this time, im not that used to less so i hope this is a good place to put it.
Sorry for all the fixed, i was kinda getting irritated, last one should be good. EDIT: can i get a approval for that fix? |
I tried your approach but it seems it breaks the fonts on the startup page (what says "Gitea, git with a cup of tea"). I applied as: i.icon.fa-star-o.icon {
font-family: "FontAwesome" !important;
} And that worked to solve the specific problem. An ugly fix, until it is addressed in master. |
Something else weird that happens by using that override is that the system lags quite a bit while waiting for googlefonts api. I wonder why. Font-awesome is bundled with the gitea install. Maybe the font name for the local webfont import is different? |
@bkraul yeah, can imagine that stuff breaks with an !important...not the way to go anyways, but have to dig deeper into the codebase before I can be of any real use =)...just discovered gitea^^... |
That's why I don't like semantic UI as it uses |
Other work around is just renaming the icon from fa-star-o to fa-star and it works fine. |
This fixed for me without further problems. I am using it in my CSS override I wrote, so I am not touching gitea source: i.icon {
font-family: FontAwesome;
} As @lafriks and @exside there seem to be problems with the I suppose I will leave this open until it is properly resolved. |
Description
The glyph icon for "Star" renders incorrectly on all browsers I tried. I am assuming it has something to do with unicode, as I have seen this issue before related to that. It is possible this affects other glyphs around the gui, but can't say for sure.
Screenshots
The text was updated successfully, but these errors were encountered: