修改了模型评测 高度抖动的小bug
This commit is contained in:
@@ -702,7 +702,7 @@
|
|||||||
<i class="fa fa-sliders mr-2"></i>评测维度
|
<i class="fa fa-sliders mr-2"></i>评测维度
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="headerActionButtons">
|
<div id="headerActionButtons" style="min-height: 36px;">
|
||||||
<button onclick="navigateToPage('${config.createConfig.page}')" class="bg-primary text-white px-4 py-2 rounded-lg text-sm hover:bg-primary/90 transition-colors flex items-center">
|
<button onclick="navigateToPage('${config.createConfig.page}')" class="bg-primary text-white px-4 py-2 rounded-lg text-sm hover:bg-primary/90 transition-colors flex items-center">
|
||||||
<i class="fa fa-plus mr-2"></i>${config.createConfig.createText}
|
<i class="fa fa-plus mr-2"></i>${config.createConfig.createText}
|
||||||
</button>
|
</button>
|
||||||
@@ -2500,7 +2500,8 @@
|
|||||||
</button>
|
</button>
|
||||||
`;
|
`;
|
||||||
} else if (tabId === 'leaderboard') {
|
} else if (tabId === 'leaderboard') {
|
||||||
btnContainer.innerHTML = ''; // 排行榜隐藏按钮
|
// 排行榜隐藏按钮,但保留占位元素避免高度变化
|
||||||
|
btnContainer.innerHTML = '<span class="invisible px-4 py-2 rounded-lg">占位</span>';
|
||||||
} else if (tabId === 'dimensions') {
|
} else if (tabId === 'dimensions') {
|
||||||
btnContainer.innerHTML = `
|
btnContainer.innerHTML = `
|
||||||
<button onclick="addDimension()" class="bg-primary text-white px-4 py-2 rounded-lg text-sm hover:bg-primary/90 transition-colors flex items-center">
|
<button onclick="addDimension()" class="bg-primary text-white px-4 py-2 rounded-lg text-sm hover:bg-primary/90 transition-colors flex items-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user