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

[bug] view is weird in Safari Browser #7

Open
1 of 2 tasks
Isaac-Lee opened this issue May 14, 2022 · 5 comments
Open
1 of 2 tasks

[bug] view is weird in Safari Browser #7

Isaac-Lee opened this issue May 14, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Isaac-Lee
Copy link
Contributor

Isaac-Lee commented May 14, 2022

Description

Font Error?

  • Different Font in Safari

The font in JS, TS icon is weird

JS, TS font

And also font of `raspberry pi` icon as well

R PI font

Overall View

  • 'gap' property not working in Safari

And for the last the overall view is different from when I use Chrome.

overall view

The column is 5 whitch is 4 when I view with Chrome.
@Isaac-Lee Isaac-Lee added the bug Something isn't working label May 14, 2022
@qkrdmstlr3
Copy link
Owner

wow~~~ Thank you! Maybe I'll fix it after the first semester is over. I'm too busy😢

@Isaac-Lee
Copy link
Contributor Author

Sure! Take your time.
I will find a way to fix this also.

@Isaac-Lee
Copy link
Contributor Author

Font Error?

I think the font issue is occurring because there is no font-family property.

.js-text {
font-size: 30px;
font-weight: bold;
}

.pi-text{
fill: #E66526;
font-size: 13px;
font-weight: bold;
opacity: 0;
animation: text-ani 5s infinite;
}

It makes to bring the default font family of each browser, witch is as follow.

스크린샷 2022-05-17 오후 12 03 14

So adding the font-family property may solve the first problem.

@Isaac-Lee
Copy link
Contributor Author

Isaac-Lee commented May 17, 2022

Overall View

The view issue is occurring from following errors.

export const TechStackList = styled.ul`
padding: 0;
display: flex;
flex-wrap: wrap;
list-style: none;
gap: 36px;
`;

The gap property is not working properly in Safari.
I test the code in Chrome with turning off the gap property and it looks the same.

I searched it out a bit and found that under Safari 14.1 the "flex gap" was not supported. My Safari version is 14.0.3 so.. the veiw was weird for me.

Still, it would be great for fix this bug in the future :)

@Isaac-Lee
Copy link
Contributor Author

Isaac-Lee commented Jul 3, 2022

I am still working on this issue.
The gap property is not working fine after updating my Safari.

But still font issue is having some problems in Safari browser.

I found that the default font Chrome is using is 'Roboto'.
So I tried to import the font like below to use in every browser(including Safari).

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital@1&display=swap');
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto'), local('Roboto-Regular'), 
    url(https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
.js-text {
    font-size: 30px;
    font-family: 'Roboto';
    font-weight: bold;
}

Unfortunately, nothing changed...

스크린샷 2022-07-03 오후 11 36 11

I will keep working on this issue but I think it will take some time 🥲

plus: It is very interesting that the html text is using Roboto font, but SVG text does not. (super super weird)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants