Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Insight extractor] Feature: Collapsible Sidebar with Expand Icon

未关闭
#372 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
frontend

调研方向

该 issue 没有指定文件或测试。首先定位侧边栏和顶部导航组件,然后追踪它们的折叠状态和布局行为。完成的标准是:侧边栏能够完全隐藏并恢复,导航仅在折叠时显示展开图标,内容调整大小时不会发生重叠,并且该行为适用于各种屏幕尺寸。

由索引模型根据 Issue 内容生成。

描述

Bug
Image Image

Description
When the user clicks the collapse button on the sidebar, the entire sidebar should be hidden. Currently, only part of the sidebar is hidden. Once collapsed, an expand icon should appear in the top navigation bar to allow the user to restore the sidebar.

Requirements

Collapse Behavior

Clicking the collapse button hides the sidebar completely (not partially).

The main content area should automatically expand to use the freed space.

Expand Behavior

When the sidebar is collapsed, an expand icon appears in the top navigation bar.

Clicking this expand icon restores the sidebar to its full width.

UI/UX

Collapse button: positioned inside the sidebar (top-left-corner).

Expand button: positioned inside the top navigation bar (left side).

Image

Use consistent icons (e.g., left/right chevrons) to indicate collapse/expand actions.

Smooth transition animation (e.g., slide in/out or width transition) preferred.

Acceptance Criteria

✅ Sidebar fully disappears when collapse button is clicked.

✅ Top navigation bar shows expand icon when sidebar is collapsed.

✅ Clicking expand icon restores sidebar to full width.

✅ No layout overlap — main content expands/shrinks correctly.

✅ Behavior works across all screen sizes.

主要语言
TypeScript
星标
21
派生
18
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeForPhilly/balancer-main 的其他 Issue

查看 CodeForPhilly/balancer-main 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。