reactjs / reactjs/react.dev

BUG - Hidden "FAQ" menu items in sidebar on desktop screen

未關閉
#5,582 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
JavaScript
星號
11.8k
分支
7.9k
平均合併
1 天 11 小時
30 天內合併 PR
11

描述

Issue

Hi, I have noticed an issue with the sidebar section on the desktop screen. The FAQ menu contains two items(Versioning Policy and Virtual DOM and Internals) that are hidden or not shown properly scroll down to the bottom.

Steps To Reproduce

Although there may be different approaches to fix this issue I have found one of them mentioned below. Link of the following code to update.

  • from
    [media.greaterThan('small')]: {
                  position: 'fixed',
                  zIndex: 2,
                  // previous code
                  // height: 'calc(100vh - 60px)',
                  // updated code
                  height: calc(100vh - 110px);
                  overflowY: 'auto',
                  WebkitOverflowScrolling: 'touch',
                  marginRight: -999,
                  paddingRight: 999,
                  backgroundColor: '#f7f7f7',
                  opacity: '1 !important',
                },
    
                [media.size('small')]: {
                 // previous code
                  // height: 'calc(100vh - 40px)',
                  // updated code
                  height: calc(100vh - 110px);
                },
    
                [media.between('medium', 'large')]: {
                 // previous code
                  // height: 'calc(100vh - 50px)',
                  // updated code
                  height: calc(100vh - 110px);
                },
    

The current behavior

react_sidebar

The expected behavior

react_sidebar_e

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js 第 91-109 行附近開始,檢查側邊欄在桌面版和回應式斷點下的高度與溢位行為。驗證在受影響的螢幕尺寸上捲動到底部時,FAQ 項目 Versioning Policy 和 Virtual DOM and Internals 仍然可見且可存取。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, react
領域
frontend
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。