mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-09-30 13:09:40 +02:00
fix: use a closed ring for project preview task stats
Replace the small refresh-arrow icon so it no longer renders as a spike at compact sizes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f44adaddf3
commit
8da3c8c51b
3 files changed
+13
-3
No files matched your search
@@ -44002,8 +44002,9 @@ html[data-theme="dark"] #project-panel-assets .projects-panel-pagination.paginat
|
|||||||
}
|
}
|
||||||
|
|
||||||
.project-folder-preview-stats svg {
|
.project-folder-preview-stats svg {
|
||||||
width: 15px;
|
width: 16px;
|
||||||
height: 15px;
|
height: 16px;
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-folder-preview-details {
|
.project-folder-preview-details {
|
||||||
|
|||||||
@@ -139,6 +139,15 @@ test('对话悬浮预览标题与时间分行显示并保留更多标题内容',
|
|||||||
assert.doesNotMatch(titleStyles, /white-space: nowrap;/);
|
assert.doesNotMatch(titleStyles, /white-space: nowrap;/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('项目预览任务统计使用闭合圆环,避免刷新箭头在小尺寸下变成毛刺', () => {
|
||||||
|
const source = functionSource(projects, 'ensureProjectFolderPreview', 'positionProjectFolderPreview');
|
||||||
|
|
||||||
|
assert.match(source, /class="project-folder-preview-stats"/);
|
||||||
|
assert.match(source, /<circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="1\.5"\/>/);
|
||||||
|
assert.doesNotMatch(source, /H21v5l-2-2/);
|
||||||
|
assert.match(styles, /\.project-folder-preview-stats svg \{\s*width: 16px;\s*height: 16px;\s*overflow: visible;/);
|
||||||
|
});
|
||||||
|
|
||||||
test('对话悬浮预览使用美化后的代理模式徽标', () => {
|
test('对话悬浮预览使用美化后的代理模式徽标', () => {
|
||||||
const projects = fs.readFileSync('web/static/js/projects.js', 'utf8');
|
const projects = fs.readFileSync('web/static/js/projects.js', 'utf8');
|
||||||
|
|
||||||
|
|||||||
@@ -2923,7 +2923,7 @@ function ensureProjectFolderPreview() {
|
|||||||
<span class="project-folder-preview-title"></span>
|
<span class="project-folder-preview-title"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="project-folder-preview-stats">
|
<div class="project-folder-preview-stats">
|
||||||
<svg width="17" height="17" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M21 12a8.5 8.5 0 0 1-9 8.48A8.5 8.5 0 1 1 20.48 11H21v5l-2-2" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="1.5"/></svg>
|
||||||
<span></span>
|
<span></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="project-folder-preview-details">
|
<div class="project-folder-preview-details">
|
||||||
|
|||||||
Reference in new issue
Block a user