完成:aide/022 - 开始任务准备: 调整 aide 体系的 finish 清理、提交信息和 decide 界面
This commit is contained in:
@@ -88,10 +88,22 @@ function renderItemCard(item) {
|
||||
}
|
||||
|
||||
if (item.location && item.location.file) {
|
||||
const location = document.createElement("div");
|
||||
location.className = "item-location";
|
||||
location.textContent = `位置: ${item.location.file}:${item.location.start}-${item.location.end}`;
|
||||
card.appendChild(location);
|
||||
const locationWrap = document.createElement("div");
|
||||
locationWrap.className = "item-location";
|
||||
|
||||
const locationLabel = document.createElement("div");
|
||||
locationLabel.className = "location-label";
|
||||
locationLabel.textContent = `来源: ${item.location.file} (行 ${item.location.start}-${item.location.end})`;
|
||||
locationWrap.appendChild(locationLabel);
|
||||
|
||||
if (item.source_content) {
|
||||
const sourceContent = document.createElement("pre");
|
||||
sourceContent.className = "source-content";
|
||||
sourceContent.textContent = item.source_content;
|
||||
locationWrap.appendChild(sourceContent);
|
||||
}
|
||||
|
||||
card.appendChild(locationWrap);
|
||||
}
|
||||
|
||||
const options = renderOptions(item);
|
||||
|
||||
@@ -130,6 +130,26 @@ body {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.location-label {
|
||||
font-size: var(--font-size-sm);
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.source-content {
|
||||
background: var(--color-background);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: var(--spacing-sm);
|
||||
margin: var(--spacing-xs) 0 0 0;
|
||||
font-family: "SF Mono", Monaco, Consolas, monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.options-list {
|
||||
margin-top: var(--spacing-md);
|
||||
display: grid;
|
||||
|
||||
Reference in New Issue
Block a user