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] 发现页的助手图标显示错位 #4303

Open
BiFangKNT opened this issue Oct 9, 2024 · 6 comments
Open

[Bug] 发现页的助手图标显示错位 #4303

BiFangKNT opened this issue Oct 9, 2024 · 6 comments
Labels
🐛 Bug Something isn't working | 缺陷 💄 Design Design an style | 样式问题

Comments

@BiFangKNT
Copy link
Contributor

📦 部署环境

Docker

📌 软件版本

lobehub/lobe-chat-database:1.21.8

💻 系统环境

Other Linux

🌐 浏览器

Chrome

🐛 问题描述

在外面预览,图标显示错位
image

点进去看是正常的
image

📷 复现步骤

进入发现页

🚦 期望结果

图标正常居中显示

📝 补充信息

No response

@BiFangKNT BiFangKNT added the 🐛 Bug Something isn't working | 缺陷 label Oct 9, 2024
@lobehubbot
Copy link
Member

👀 @BiFangKNT

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

Docker

📌 Software version

lobehub/lobe-chat-database:1.21.8

💻 System environment

Other Linux

🌐 Browser

Chrome

🐛 Problem description

When previewing outside, the icon appears misplaced.
image

It’s normal to click in to see
image

📷 Steps to reproduce

Go to discovery page

🚦 Expected results

The icon is displayed in the center normally

📝 Supplementary information

No response

@dosubot dosubot bot added the 💄 Design Design an style | 样式问题 label Oct 9, 2024
Copy link

dosubot bot commented Oct 9, 2024

The issue with misaligned icons in the "Discover" section might be related to responsive design adjustments or CSS properties affecting alignment. Here are a few things to check:

  1. Responsive Design: Ensure that the useResponsive hook is correctly determining the layout for different screen sizes. This can affect how icons are positioned [1][2].

  2. CSS Properties: Verify the CSS properties applied to the icons, such as flexbox or grid settings, which might be causing misalignment.

  3. JavaScript Adjustments: Check if the useCategory function is dynamically setting icon sizes correctly. Any discrepancies in the fontsize or ICON_SIZE might lead to misalignment [3][4].

Review these areas in your code to identify potential causes of the misalignment.

To continue talking to Dosu, mention @dosu.

1 similar comment
Copy link

dosubot bot commented Oct 9, 2024

The issue with misaligned icons in the "Discover" section might be related to responsive design adjustments or CSS properties affecting alignment. Here are a few things to check:

  1. Responsive Design: Ensure that the useResponsive hook is correctly determining the layout for different screen sizes. This can affect how icons are positioned [1][2].

  2. CSS Properties: Verify the CSS properties applied to the icons, such as flexbox or grid settings, which might be causing misalignment.

  3. JavaScript Adjustments: Check if the useCategory function is dynamically setting icon sizes correctly. Any discrepancies in the fontsize or ICON_SIZE might lead to misalignment [3][4].

Review these areas in your code to identify potential causes of the misalignment.

To continue talking to Dosu, mention @dosu.

@SpeedupMaster
Copy link
Contributor

图片
我的好像没问题

@lobehubbot
Copy link
Member

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


Picture
Mine seems to be fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 💄 Design Design an style | 样式问题
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

3 participants