2.1 KiB
2.1 KiB
Speaking Lab Study Toolbar Polish Design
Goal
Refine the study page toolbar so the core English practice controls feel centered, focused, and visually consistent with the upgraded home page UI.
Scope
Included:
- Remove
继续学习from the study page toolbar. - Remove
稍后再看from the study page toolbar. - Keep
收藏. - Place
上一句 / 重播 / 下一句in the visual center as the primary practice controls. - Place recording controls as secondary controls on the left.
- Place a larger loop toggle and favorite action on the right.
- Style the toolbar and buttons with a premium white-card look matching the home page.
Excluded:
- Removing existing localStorage
watchLaterdata. - Removing helper functions unrelated to visible toolbar behavior.
- Backend changes.
- README changes.
- Home page changes.
Layout
The toolbar uses three zones:
- Left:
录音 / 停止 / 回放 - Center:
上一句 / 重播 / 下一句 - Right: large
循环toggle and收藏
On narrow screens, the zones may wrap but should remain readable and should not overflow horizontally.
Behavior
Existing behavior remains:
- Previous sentence jumps back one cue.
- Replay jumps to current sentence.
- Next sentence jumps forward one cue.
- Loop checkbox controls sentence loop.
- Favorite toggles current material in favorites.
- Recording controls keep existing browser recording behavior.
Removed behavior:
- The study page no longer exposes a
继续学习button. - The study page no longer exposes a
稍后再看button.
Verification
Run:
node --check app.js
node --check home.js
node --check admin.js
python -m py_compile backend\main.py backend\db.py
node tests\progress-helpers.test.mjs
node tests\admin-file-input.test.mjs
Browser checks:
- Open
http://127.0.0.1:8000/study.html. - Confirm
上一句 / 重播 / 下一句are centered. - Confirm
循环is larger and easy to see. - Confirm
继续学习and稍后再看do not appear. - Confirm
收藏still works. - Confirm no horizontal overflow on a narrow viewport.