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] chat-preview.lobehub.com网站的Banner广告在手机无法正常显示 #5162

Open
zhufeizzz opened this issue Dec 24, 2024 · 8 comments
Labels
🐛 Bug Something isn't working | 缺陷 📱 Mobile Device Issue in mobile view | 移动设备

Comments

@zhufeizzz
Copy link

📦 部署环境

Official Preview

📌 软件版本

v1.39.0

💻 系统环境

iOS

🌐 浏览器

Edge

🐛 问题描述

这个Banner是否可以移除,不仅难看,而且在iPhone手机上无法正常显示,体验非常差。

image

📷 复现步骤

使用iPhone手机将https://chat-preview.lobehub.com/chat安装为PWA应用

🚦 期望结果

期望取消Banner广告,在iPhone上正常显示。

📝 补充信息

No response

@zhufeizzz zhufeizzz added the 🐛 Bug Something isn't working | 缺陷 label Dec 24, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Dec 24, 2024
@lobehubbot
Copy link
Member

👀 @zhufeizzz

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Official Preview

📌 Software version

v1.39.0

💻 System environment

iOS

🌐 Browser

Edge

🐛 Problem description

Whether this Banner can be removed is not only ugly, but also cannot be displayed properly on the iPhone, making the experience very poor.

image

📷 Steps to reproduce

Use your iPhone to install https://chat-preview.lobehub.com/chat as a PWA application

🚦 Expected results

It is expected that the Banner advertisement will be canceled and displayed normally on the iPhone.

📝 Supplementary information

No response

@dosubot dosubot bot added the 📱 Mobile Device Issue in mobile view | 移动设备 label Dec 24, 2024
Copy link

dosubot bot commented Dec 24, 2024

@zhufeizzz 你好!我是Dosu,一个可以帮助您解决软件问题、回答问题并成为贡献者的机器人。我会在等待人类维护者的过程中帮助您。

I found a similar closed issue regarding mobile display problems, but no solution was provided in the comments [1].

Regarding your question about removing or customizing the Banner component, I couldn't find specific information in the repository about a configuration or setting that allows for this. However, the CloudBanner component does have a mobile prop that affects its behavior on mobile devices [2].

For handling viewport settings and scaling for PWA installations on iOS devices, the application uses the generateViewport function, which sets specific viewport settings for mobile devices to prevent zooming and ensure proper display [3].

If the Banner is not displaying correctly on iOS devices, it might be worth checking the CSS media queries or styles applied to the Banner component, although specific details on this were not found in the repository.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@arvinxx
Copy link
Contributor

arvinxx commented Dec 24, 2024

这个 Banner 的设置是 by design 的,如果你觉得体验差,可以选择自部署,自部署版本将不会有这个 Banner。

因为 chat preview 是我们的一个演示站点,本身就不建议你在日常生产场景下使用。所以故意用这种方式软性逼迫你们不要在日常中使用。

@arvinxx arvinxx closed this as completed Dec 24, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Dec 24, 2024
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This Banner is set by design. If you feel the experience is poor, you can choose self-deployment. The self-deployment version will not have this Banner.

Because chat preview is one of our demo sites, it is not recommended for you to use it in daily production scenarios. So I deliberately use this method to force you not to use it in your daily life.

@lobehubbot
Copy link
Member

@zhufeizzz

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@zhufeizzz
Copy link
Author

这个 Banner 的设置是 by design 的,如果你觉得体验差,可以选择自部署,自部署版本将不会有这个 Banner。

因为 chat preview 是我们的一个演示站点,本身就不建议你在日常生产场景下使用。所以故意用这种方式软性逼迫你们不要在日常中使用。

@arvinxx 保留Banner其实也没问题,不过起码要能在手机上PWA正常显示吧。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This Banner is set by design. If you feel the experience is poor, you can choose self-deployment. The self-deployment version will not have this Banner.

Because chat preview is one of our demo sites, it is not recommended for you to use it in daily production scenarios. So I deliberately use this method to force you not to use it in your daily life.

@arvinxx There is actually no problem in keeping the Banner, but at least it must be able to display normally on the PWA on the mobile phone.

@arvinxx arvinxx reopened this Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 📱 Mobile Device Issue in mobile view | 移动设备
Projects
Status: Done
Development

No branches or pull requests

3 participants