马一丁

Update button style

... ... @@ -1545,11 +1545,24 @@
transition: background-color 0.2s ease, color 0.2s ease;
}
.graph-panel-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.graph-panel-button:hover {
background-color: #000000;
color: #ffffff;
}
#graphFullBtn {
min-width: 96px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.graph-status-chip {
display: inline-flex;
align-items: center;
... ... @@ -5289,6 +5302,12 @@ function getConsoleContainer() {
} else {
chip.textContent = textMap[state] || state;
}
const fullBtn = document.getElementById('graphFullBtn');
if (fullBtn) {
const ready = state === 'ready';
fullBtn.disabled = !ready;
fullBtn.title = ready ? '在新标签页查看' : '知识图谱生成后可查看';
}
if (message) {
setGraphPanelPlaceholder(message, state === 'error' ? 'error' : '');
}
... ...