Showing
1 changed file
with
19 additions
and
0 deletions
| @@ -1545,11 +1545,24 @@ | @@ -1545,11 +1545,24 @@ | ||
| 1545 | transition: background-color 0.2s ease, color 0.2s ease; | 1545 | transition: background-color 0.2s ease, color 0.2s ease; |
| 1546 | } | 1546 | } |
| 1547 | 1547 | ||
| 1548 | + .graph-panel-button:disabled { | ||
| 1549 | + opacity: 0.5; | ||
| 1550 | + cursor: not-allowed; | ||
| 1551 | + } | ||
| 1552 | + | ||
| 1548 | .graph-panel-button:hover { | 1553 | .graph-panel-button:hover { |
| 1549 | background-color: #000000; | 1554 | background-color: #000000; |
| 1550 | color: #ffffff; | 1555 | color: #ffffff; |
| 1551 | } | 1556 | } |
| 1552 | 1557 | ||
| 1558 | + #graphFullBtn { | ||
| 1559 | + min-width: 96px; | ||
| 1560 | + height: 32px; | ||
| 1561 | + display: inline-flex; | ||
| 1562 | + align-items: center; | ||
| 1563 | + justify-content: center; | ||
| 1564 | + } | ||
| 1565 | + | ||
| 1553 | .graph-status-chip { | 1566 | .graph-status-chip { |
| 1554 | display: inline-flex; | 1567 | display: inline-flex; |
| 1555 | align-items: center; | 1568 | align-items: center; |
| @@ -5289,6 +5302,12 @@ function getConsoleContainer() { | @@ -5289,6 +5302,12 @@ function getConsoleContainer() { | ||
| 5289 | } else { | 5302 | } else { |
| 5290 | chip.textContent = textMap[state] || state; | 5303 | chip.textContent = textMap[state] || state; |
| 5291 | } | 5304 | } |
| 5305 | + const fullBtn = document.getElementById('graphFullBtn'); | ||
| 5306 | + if (fullBtn) { | ||
| 5307 | + const ready = state === 'ready'; | ||
| 5308 | + fullBtn.disabled = !ready; | ||
| 5309 | + fullBtn.title = ready ? '在新标签页查看' : '知识图谱生成后可查看'; | ||
| 5310 | + } | ||
| 5292 | if (message) { | 5311 | if (message) { |
| 5293 | setGraphPanelPlaceholder(message, state === 'error' ? 'error' : ''); | 5312 | setGraphPanelPlaceholder(message, state === 'error' ? 'error' : ''); |
| 5294 | } | 5313 | } |
-
Please register or login to post a comment