fix(练习): 重构布局和修复需求问题
- 修复知识领域显示完整名称(如"项目整合管理") - 改用 table 布局,参考 process-matrix 样式 - 输入区域添加半透明背景(bg-white/80 + backdrop-blur-md) - 辅助信息不再省略,显示完整内容 - 删除不需要的 KnowledgeAreaCell 组件 - 知识领域显示在左侧列,过程显示在单元格内 via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
@@ -302,7 +302,6 @@ export default function ProcessPracticePage() {
|
||||
{/* 矩阵区域 */}
|
||||
<div className="max-w-7xl mx-auto py-4">
|
||||
<PracticeMatrix
|
||||
cellSequence={cellSequence}
|
||||
answeredCells={answeredCells}
|
||||
currentCellId={currentCellId}
|
||||
showAnswerForCell={showAnswerForCell}
|
||||
@@ -315,10 +314,10 @@ export default function ProcessPracticePage() {
|
||||
</div>
|
||||
|
||||
{/* 底部固定区域 */}
|
||||
<div className="fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 z-10">
|
||||
<div className="fixed bottom-0 left-0 right-0 bg-white/80 dark:bg-gray-800/80 backdrop-blur-md border-t border-gray-200 dark:border-gray-700 z-10">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
{/* 输入区域 */}
|
||||
<div className="py-4 border-b border-gray-200 dark:border-gray-700">
|
||||
<div className="py-4 border-b border-gray-200/50 dark:border-gray-700/50">
|
||||
<InputArea
|
||||
userInput={userInput}
|
||||
charStatuses={charStatuses}
|
||||
@@ -333,7 +332,7 @@ export default function ProcessPracticePage() {
|
||||
</div>
|
||||
|
||||
{/* 辅助信息区域 */}
|
||||
<div className="py-3 px-4 max-h-32 overflow-y-auto">
|
||||
<div className="py-3 px-4 max-h-40 overflow-y-auto">
|
||||
<HintInfo currentCell={currentCell} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user