feat: 优化学生端 AI 助学体验
parent
ffbc5d567b
commit
e8c1f08640
@ -0,0 +1,24 @@
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const root = path.resolve(__dirname, "..");
|
||||
const styles = fs.readFileSync(path.join(root, "src/assets/styles/student-training.scss"), "utf8");
|
||||
|
||||
assert.match(
|
||||
styles,
|
||||
/\.student-training-shell\.product-process\s*\{[\s\S]*?gap:\s*10px\s*!important;[\s\S]*?padding:\s*10px\s+10px\s+16px\s*!important;/,
|
||||
"产品开发主要流程页应压缩外层边距与双栏间隔"
|
||||
);
|
||||
assert.match(
|
||||
styles,
|
||||
/\.student-training-shell\.product-process\s*>\s*main\s*\{[\s\S]*?padding:\s*12px\s*!important;/,
|
||||
"产品开发主要流程主卡应减少装饰性内边距"
|
||||
);
|
||||
assert.match(
|
||||
styles,
|
||||
/\.student-training-shell\.product-process\s+\.process-workbench\s*\{[\s\S]*?padding:\s*10px\s+12px\s*!important;/,
|
||||
"产品开发主要流程工作台应为实操内容释放空间"
|
||||
);
|
||||
|
||||
console.log("Product development process uses the compact training layout.");
|
||||
@ -0,0 +1,29 @@
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const root = path.resolve(__dirname, "..");
|
||||
const styles = fs.readFileSync(path.join(root, "src/assets/styles/student-training.scss"), "utf8");
|
||||
|
||||
assert.match(
|
||||
styles,
|
||||
/\.student-training-shell\s*\{[\s\S]*?--student-step-height:\s*42px;/,
|
||||
"所有学生端实训页应使用更紧凑的步骤条高度"
|
||||
);
|
||||
assert.match(
|
||||
styles,
|
||||
/\.student-training-shell\s*>\s*main\s*\{[\s\S]*?padding:\s*12px\s*!important;/,
|
||||
"所有学生端实训主卡应减少装饰性内边距"
|
||||
);
|
||||
assert.match(
|
||||
styles,
|
||||
/\.student-training-shell\s*>\s*main\s*>\s*\.task-card,[\s\S]*?padding:\s*10px\s+12px\s*!important;/,
|
||||
"所有学生端工作台应为实操内容保留更多空间"
|
||||
);
|
||||
assert.match(
|
||||
styles,
|
||||
/\.student-training-shell\s+\.step-card,[\s\S]*?padding:\s*12px\s*!important;/,
|
||||
"所有学生端步骤卡应使用紧凑内边距"
|
||||
);
|
||||
|
||||
console.log("All student training pages use the compact layout density.");
|
||||
Loading…
Reference in New Issue