אתרים דרך DiscourseHub מתנגשים עם אלמנטים בשורת העליונה באייפון 14 פרו מקס

סיכום מבוסס בינה מלאכותית

A discussion on the Discourse forum addresses a bug where the top bar elements of sites accessed via DiscourseHub clash with the iPhone 14 Pro Max’s display, particularly on iOS 16.0.1. Stephen reports the issue, noting it’s hardware-specific and distinct from a related focused sidebar theme problem Stephen. Don proposes a fix involving CSS adjustments to prevent logo height issues, providing specific code snippets for desktop and mobile themes. seanblue observes a similar issue on desktop and mobile browsers, not limited to DiscourseHub. david confirms a fix is in the pipeline, referencing a GitHub commit. Stephen confirms the issue is resolved in the Discourse Hub iOS app update. cvx confirms the fix is in Discourse Hub 1.8.3, released six days prior, and invites further reports of similar collisions.

Sites through Safari are fine:

Whereas the same sites via DiscourseHub clash at the top of the screen:


Testing both Light and Focused Sidebar themes.

It’s pretty hard to activate anything in the top bar of the site while they overlap like this.

iPhone 14 Pro Max, iOS 16.0.1 (current retail release).

3 לייקים

I just commented on Titlebar is not displaying properly - #13 by spdegabrielle but now I see your post I think they might be related

לייק 1

I’ve been participating in that one too, it relates more to the focused sidebar theme. This one is hardware-specific. As a result one of my screenshots above exhibits both.

לייק 1

Thanks @Stephen - we have a fix for this in the pipeline, and will update here when it’s released

https://github.com/discourse/DiscourseMobile/commit/fe82683cffaac803d6f53f4746f5b60844bac627

7 לייקים

It’s a bit hard to tell, but is this the same as what I’m seeing here on https://community.wanikani.com? The difference is, I’m seeing this on both desktop and mobile browsers (I don’t use DiscourseHub), so I wasn’t sure.

I think this is because it’s use height: 100% on logo.

.d-header {
  #site-logo.logo-big {
    height: 100%;
  }
}

Probably a good idea to add to the core #site-logo max-height: var(--header-offset) to prevent this. :thinking:

Quick fix :arrow_down_small:

Remove these from your custom theme

From Desktop theme_1
Screenshot 2022-09-17 at 17.42.59

.d-header {
  #site-logo.logo-big {
    height: 100%;
  }
}

And from Mobile theme_1
Screenshot 2022-09-17 at 17.46.52

.d-header {
  #site-logo {
    height: 100%;
    max-height: 100%;
  }
}
Add these to your custom theme

Add this to common :arrow_down_small:

.d-header {
  #site-logo {
    height: 100%;
    max-height: var(--header-offset);
  }
}

Add this to desktop :arrow_down_small:

.d-header {
  #site-logo.logo-small {
    height: 2.667em;
  }
}

Add this to mobile section :arrow_down_small:

.d-header {
  .title {
    max-width: 100%;
    #site-logo.logo-small {
      max-height: 2.4em;
    }
  }
}

After these changes :arrow_down_small:

Desktop:

Mobile:
Screenshot 2022-09-17 at 18.04.00

2 לייקים

Thanks for the suggestion. Unfortunately I’m not an admin for the site, so I can’t do much.

The Discourse Hub update hit the iOS App Store and everything is looking good once again.

2 לייקים

I believe this may be iOS 16? I see you’re using it, and I had this issue on Roblox today.

לייק 1

iPhone 14 Pro compatibility has been released in Discourse Hub 1.8.3!

Let me know if there are any more collisions between forum header and the iOS interface. :smiley: (not just on the latest iPhone)

4 לייקים

Is that the release from six days ago, or another?

לייק 1

Yup, that one!

3 לייקים