mirror of
https://github.com/olehomelchenko/astrolabe-nvc.git
synced 2025-12-21 21:22:23 +00:00
feat: dataset preview and interconnection (phase 12)
This commit is contained in:
@@ -156,6 +156,9 @@ body { font-family: var(--font-main); height: 100vh; overflow: hidden; backgroun
|
||||
.snippet-name { font-size: 12px; }
|
||||
.snippet-date { font-size: 11px; color: inherit; margin-top: 1px; }
|
||||
.snippet-size { font-size: 10px; color: var(--win-gray-dark); margin-left: auto; margin-right: 8px; flex-shrink: 0; }
|
||||
.snippet-dataset-icon { margin-left: 4px; font-size: 10px; opacity: 0.7; }
|
||||
.snippet-item.selected .snippet-dataset-icon,
|
||||
.snippet-item:hover .snippet-dataset-icon { opacity: 1; }
|
||||
|
||||
/* Placeholders */
|
||||
.editor-placeholder,
|
||||
@@ -184,6 +187,10 @@ body { font-family: var(--font-main); height: 100vh; overflow: hidden; backgroun
|
||||
.meta-info-item:last-child { margin-bottom: 0; }
|
||||
.meta-info-label { font-weight: bold; }
|
||||
.meta-info-value { color: var(--win-gray-darker); }
|
||||
.dataset-link { color: var(--win-blue); text-decoration: underline; cursor: pointer; }
|
||||
.dataset-link:hover { color: var(--win-blue-dark); background: #e0e8f0; }
|
||||
.snippet-link { color: var(--win-blue); text-decoration: underline; cursor: pointer; font-size: 10px; }
|
||||
.snippet-link:hover { color: var(--win-blue-dark); background: #e0e8f0; }
|
||||
|
||||
/* Meta Actions */
|
||||
.meta-actions { display: flex; gap: 6px; margin-top: 8px; }
|
||||
@@ -206,7 +213,7 @@ body { font-family: var(--font-main); height: 100vh; overflow: hidden; backgroun
|
||||
|
||||
/* Modal */
|
||||
.modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
|
||||
.modal-content { background: var(--win-gray); border: 2px outset var(--win-gray); width: 90%; max-width: 900px; height: 80vh; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 4px 4px 8px rgba(0,0,0,0.3); }
|
||||
.modal-content { background: var(--win-gray); border: 2px outset var(--win-gray); width: 95%; max-width: 1200px; height: 85vh; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 4px 4px 8px rgba(0,0,0,0.3); }
|
||||
.modal-header { background: #008; color: var(--bg-white); padding: 4px 8px; display: flex; justify-content: space-between; align-items: center; height: 24px; border-bottom: 2px solid var(--win-gray-dark); }
|
||||
.modal-title { font-size: 12px; font-weight: bold; }
|
||||
.modal-body { flex: 1; overflow: auto; background: var(--bg-white); border: 2px inset var(--win-gray); margin: 8px; min-height: 0; }
|
||||
@@ -216,13 +223,17 @@ body { font-family: var(--font-main); height: 100vh; overflow: hidden; backgroun
|
||||
.dataset-list-header { padding: 8px; background: var(--win-gray-light); border-bottom: 2px solid var(--win-gray-dark); }
|
||||
.dataset-container { display: flex; flex: 1; overflow: hidden; }
|
||||
.dataset-list { width: 300px; overflow-y: auto; border-right: 2px solid var(--win-gray-dark); background: var(--bg-white); }
|
||||
.dataset-item { padding: 8px; border-bottom: 1px solid #d0d0d0; cursor: pointer; background: var(--bg-white); }
|
||||
.dataset-item { padding: 8px; border-bottom: 1px solid #d0d0d0; cursor: pointer; background: var(--bg-white); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
|
||||
.dataset-item:hover { background: var(--win-blue-lighter); color: var(--bg-white); }
|
||||
.dataset-item.selected { background: var(--win-blue); color: var(--bg-white); }
|
||||
.dataset-info { flex: 1; min-width: 0; }
|
||||
.dataset-name { font-size: 12px; font-weight: bold; margin-bottom: 2px; }
|
||||
.dataset-meta { font-size: 10px; color: var(--win-gray-darker); }
|
||||
.dataset-item.selected .dataset-meta,
|
||||
.dataset-item:hover .dataset-meta { color: inherit; opacity: 0.9; }
|
||||
.dataset-usage-badge { background: var(--win-blue); color: var(--bg-white); padding: 2px 6px; font-size: 10px; font-weight: bold; border-radius: 3px; white-space: nowrap; flex-shrink: 0; }
|
||||
.dataset-item.selected .dataset-usage-badge { background: var(--win-blue-dark); }
|
||||
.dataset-item:hover .dataset-usage-badge { background: var(--win-blue-dark); }
|
||||
.dataset-empty { padding: 32px; text-align: center; color: var(--win-gray-dark); font-style: italic; font-size: 12px; }
|
||||
|
||||
/* Dataset Details */
|
||||
@@ -242,6 +253,26 @@ body { font-family: var(--font-main); height: 100vh; overflow: hidden; backgroun
|
||||
.preview-box.medium { max-height: 150px; }
|
||||
.preview-box.large { max-height: 200px; }
|
||||
|
||||
/* Preview Toggle */
|
||||
.preview-toggle-group { display: flex; }
|
||||
.btn-toggle.small { padding: 2px 6px; font-size: 9px; height: 18px; }
|
||||
|
||||
/* Preview Table */
|
||||
.preview-table-container { background: var(--bg-light); border: 2px inset var(--win-gray); overflow: auto; max-height: 200px; }
|
||||
.preview-table { width: 100%; border-collapse: collapse; font-size: 10px; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; }
|
||||
.preview-table th { background: var(--win-gray-light); border: 1px solid var(--win-gray-dark); padding: 4px 6px; text-align: left; font-weight: bold; position: sticky; top: 0; }
|
||||
.preview-table td { border: 1px solid #d0d0d0; padding: 3px 6px; background: var(--bg-white); }
|
||||
.preview-table tr:hover td { background: var(--bg-lighter); }
|
||||
.preview-table-info { padding: 8px; font-size: 10px; color: var(--win-gray-darker); font-style: italic; text-align: center; }
|
||||
|
||||
/* Type-specific cell formatting */
|
||||
.type-icon { font-size: 11px; margin-right: 3px; }
|
||||
.cell-number { font-style: italic; text-align: right; color: #0066cc; }
|
||||
.cell-date { font-style: italic; color: #228b22; }
|
||||
.cell-boolean { font-weight: bold; text-align: center; color: #ff6600; }
|
||||
.cell-text { color: #000; }
|
||||
.cell-null { color: var(--win-gray-dark); font-style: italic; text-align: center; }
|
||||
|
||||
.dataset-actions { display: flex; gap: 8px; margin-top: 16px; }
|
||||
|
||||
/* Dataset Form */
|
||||
|
||||
Reference in New Issue
Block a user