style(electron): more ui bug fixes

This commit is contained in:
2025-08-10 14:06:50 -04:00
parent 875be6a43c
commit c7a6756453
8 changed files with 1157 additions and 56 deletions

View File

@@ -1762,7 +1762,8 @@ body.dark-mode .save-option-btn small {
background-color: var(--primary-color-dark);
}
.spinner {
/* Old spinner - now unused, keeping for compatibility */
.spinner-old {
position: absolute;
top: 50%;
left: 50%;
@@ -1949,6 +1950,145 @@ body.dark-mode .info-tab-pane a {
#opat-tab-content .tab-pane {
padding: 0;
}
/* Fill Progress Enhancements */
.progress-status {
display: inline-flex;
align-items: center;
gap: 6px;
font-weight: 500;
padding: 4px 8px;
border-radius: 4px;
font-size: 13px;
}
.progress-status.building {
color: #f59e0b;
background: rgba(245, 158, 11, 0.1);
border: 1px solid rgba(245, 158, 11, 0.3);
}
.progress-status.success {
color: #10b981;
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.3);
}
.progress-status.failed {
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.3);
}
/* Spinner Animation */
.spinner {
width: 12px;
height: 12px;
border: 1.5px solid rgba(245, 158, 11, 0.2);
border-top: 1.5px solid #f59e0b;
border-radius: 50%;
animation: spin 1s linear infinite;
flex-shrink: 0;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Progress Logs */
.progress-logs {
margin-top: 8px;
}
.toggle-logs-btn {
background: transparent;
border: none;
padding: 4px 8px;
border-radius: 3px;
cursor: pointer;
font-size: 11px;
color: var(--text-light);
transition: all 0.2s ease;
text-decoration: underline;
}
.toggle-logs-btn:hover {
color: var(--text-color);
background: var(--hover-color);
}
.logs-content {
margin-top: 6px;
border: 1px solid var(--border-color);
border-radius: 4px;
background: #1a1a1a;
max-height: 150px;
overflow: hidden;
}
.logs-content.hidden {
display: none;
}
.terminal-output {
background: #1a1a1a;
color: #e5e7eb;
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
font-size: 10px;
line-height: 1.3;
padding: 8px 10px;
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 150px;
overflow-y: auto;
border-radius: 4px;
}
/* Fill progress item layout improvements */
.fill-progress-item {
background: var(--background-color);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 12px;
margin-bottom: 12px;
}
.progress-target {
font-weight: 600;
margin-bottom: 6px;
color: var(--text-color);
}
.progress-bar {
background: var(--hover-color);
border-radius: 4px;
height: 6px;
margin: 8px 0;
overflow: hidden;
}
.progress-fill {
background: var(--primary-color);
height: 100%;
transition: width 0.3s ease;
}
/* Dark mode adjustments */
body.dark-mode .toggle-logs-btn {
background: #374151;
border-color: #4b5563;
color: #e5e7eb;
}
body.dark-mode .toggle-logs-btn:hover {
background: #4b5563;
}
body.dark-mode .logs-content {
border-color: #4b5563;
}
.opat-section {
margin-bottom: 20px;
padding: 16px;
@@ -2298,7 +2438,7 @@ body.dark-mode .opat-table-tag-highlight {
.license-text {
width: 100%;
height: 200px;
height: 400px;
margin-top: 12px;
padding: 12px;
border: 1px solid var(--border-color);
@@ -2308,6 +2448,7 @@ body.dark-mode .opat-table-tag-highlight {
line-height: 1.4;
resize: vertical;
background-color: #f8f9fa;
overflow-y: auto;
}
.funding-content,