字段名修改,样式优化

This commit is contained in:
黄心宇 2025-06-05 16:04:44 +08:00
parent 63136b1620
commit 2a5579a9c0
1 changed files with 3 additions and 4 deletions

View File

@ -100,8 +100,7 @@ function IssueList(props) {
iframe.style.height = contentHeight + 'px';
}
} catch (e) {
iframe.style.height = '770px';
//
iframe.style.height = `${document.getElementsByClassName('issue-list')[0] ? document.getElementsByClassName('right-content')[0].clientHeight : document.body.clientHeight }px`;
console.error("调整同源 iframe 大小出错 (或者它实际是跨域的):", e);
}
};
@ -265,7 +264,7 @@ function IssueList(props) {
//
const renderFilterItems = (items, state, setter, label, showMoreButton = false) => {
const displayedItems = showMoreButton && items && !tagShowMoreDelay ? items.slice(0, 10) : items;
const displayedItems = showMoreButton && items && !tagShowMoreDelay ? items.slice(0, 8) : items;
return (<div className={`filters`}>
<div className="filter-title">
@ -448,7 +447,7 @@ function IssueList(props) {
</div>
{ renderAnalizeItem('classes类溯源', codeAnalyze.classes) }
{ renderAnalizeItem('files文件溯源', codeAnalyze.files) }
{ renderAnalizeItem('functions溯源', codeAnalyze.func) }
{ renderAnalizeItem('调用请求量', codeAnalyze.func) }
<Divider dashed />
</div>
{renderFilterItems(listFilter.tags, selectedTag, setSelectedTag, "标签", true)}