Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions site-dumi-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export default function siteDumiPlugin(api: IApi) {
'site/theme/markdownExternalLink.less',
),
},
{
source: path.join(
api.paths.cwd,
'site/theme/otkTaskListSimpleSiteDefaults.less',
),
},
];
});
}
8 changes: 8 additions & 0 deletions site/theme/otkTaskListSimpleSiteDefaults.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 文档/演示中嵌入的 Agentic 任务列表:站点侧默认与组件库一致
.otk-task-list-simple {
padding: 0 4px;
}

.otk-task-list-simple-content {
height: 0;
}
Comment on lines +1 to +8
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability and to follow Less best practices, consider nesting the .otk-task-list-simple-content selector within .otk-task-list-simple using the & operator. This makes the relationship between the classes clearer and keeps the code more organized. Additionally, adding a blank line after the initial comment improves readability.

// 文档/演示中嵌入的 Agentic 任务列表:站点侧默认与组件库一致

.otk-task-list-simple {
  padding: 0 4px;

  &-content {
    height: 0;
  }
}

Loading