Hexo-theme-next: Sidebar offset from top menubar show wider in Safari

Created on 4 Sep 2017  ·  18Comments  ·  Source: iissnan/hexo-theme-next

I agree and want to create new issue


Expected behavior

Sidebar offset from top menubar show normal in Safari Version 10.1.2 (12603.3.8).

Actual behavior

screen shot 2017-09-04 at 5 43 47 pm

Steps to reproduce the behavior

  1. open http://notes.iissnan.com in safari
  2. sometime need refresh
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

NexT Information

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version - v5.?.?

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini

Other Information

Bug

Most helpful comment

@Voleking this bug avoid with two variants:

  • Disable custom fonts in NexT config (will changed to default in next release version).
    yml font: enable: false
  • Set «Web Safe» fonts for global (and if u want to change logo font, on logo too):
    yml global: external: false family: Times New Roman
    I don't know why Safari brake margins within custom font settings and it's very weird. All other browsers work with custom fonts fine.

If issue solved, close it please.

All 18 comments

Please, give live test on latest releases or master branches. On Iissnan site is not latest release.

Sorry, After I deployed it, everything is fine now.
It seems like that this issue only occurs in hexo s.
BTW, I use the master branches.

If issue solved, close it please.

@ivan-nginx Sorry, everything only work fine on first visit. After I refresh, this issue occurs again.
my blog
source code

@Voleking are u sure what your settings is fine?

https://blog.voleking.me

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://www.voleking.me
root: /

Sorry for my fault 😢. I updated my settings now.
BTW, I refresh my site and this issue occurs randomly.

Please, try to follow next steps:

  1. Backup your source of themes/next directory.
  2. Switch to latest release version (5.1.2) (see Download latest master branch. section in main readme).
  3. Try to catch same error by refreshing browser with CTRL + SHIFT + R.

Also, check this on NexT test site and give me the answer.

I try the steps above but still can catch this error.
And it also occurs on the first visit to the test site, however, it disappear when I refresh browser.

I hexo init a-new-site and this time everything seems fine.
Close the issue until there's a new discovery.

@Voleking all worked fine? Please, if u catch any bugs, first of all try to install clean Hexo and NexT versions.

@ivan-nginx I found this bug only occur when site title was too long and has space, like:

# Site
title: aaaaa aaaaa

Then it must be bug. Try to reproducte this error on separated test site and we will catch this bug. For now i don't see this bug at this year in many blogs and in my blog too. And on my blog i always use titles with spaces, but sidebar from header margin not can use any titles.

Yes, I reproducte this error on separated test site.
Here are two conditions for triggering a bug:

  1. The site title contains spaces.
  2. The site title contains more than 11 letters.

Can i see live demo?

Here is the live demo and code

@Voleking so, Safari Version 10.1.2 (12603.3.8) have this bug, right?


image
Catch it.

@ivan-nginx Yeah, Safari Version 10.1.2 (12603.3.8) have this bug.

@Voleking this bug avoid with two variants:

  • Disable custom fonts in NexT config (will changed to default in next release version).
    yml font: enable: false
  • Set «Web Safe» fonts for global (and if u want to change logo font, on logo too):
    yml global: external: false family: Times New Roman
    I don't know why Safari brake margins within custom font settings and it's very weird. All other browsers work with custom fonts fine.

If issue solved, close it please.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YorksonChang picture YorksonChang  ·  3Comments

winterrain5 picture winterrain5  ·  4Comments

iTofu picture iTofu  ·  4Comments

chy9002 picture chy9002  ·  3Comments

aiplay picture aiplay  ·  4Comments