alibaba / alibaba/hooks

useResponsive默认的响应式配置有错误

Open
#2,623 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15k
Forks
2.8k
Avg merge
15h 7m
Merged PRs (30d)
2

Description

文档上说useResponsive默认的响应式配置和 bootstrap 是一致的,但是我发现在xs这个断点useResponsive的是>0,而bootstrap和antd
上的xs对应的都是<576px。
![Snipaste_2024-08-07_17-12-24](https://github.com/user-attachments/assets/d2357c3b-a574-4902-a0f7-59f677c25e7c)
![Snipaste_2024-08-07_17-11-53](https://github.com/user-attachments/assets/cc6a8c2d-4c3d-4b17-877c-62b0c8869944)
![Snipaste_2024-08-07_17-12-09](https://github.com/user-attachments/assets/96a25dac-bf0e-4f4d-b6c2-1d822ae227e4)

Contributor guide

Open the contributing guide

Research direction

Start at the useResponsive entry point and locate its default responsive configuration. Compare the xs breakpoint with the documented Bootstrap and Ant Design behavior; done means the configuration and documentation consistently describe xs as below 576px.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.