Feat/monitor cache (#267)
* feat&style: add task status configuration and clear cache functionality; enhance UI styles * feat&refactor: enhance current configuration API and improve cache clearing logic * refactor&style: simplify task status update logic and improve page refresh mechanism * refactor&feat: streamline default configuration retrieval and enhance cache initialization logic * feat&refactor: add caching to default configuration retrieval and streamline task status logic * feat&style: add collapsible section for additional model parameters and enhance styling for config items * refactor&style: remove floating action button and clean up related styles
This commit is contained in:
@@ -16,5 +16,48 @@ h1, h2, h3 { margin-top: 20px; }
|
||||
.task-actions { margin-top: 15px; }
|
||||
.btn { padding: 5px 10px; background-color: #007bff; color: white; border: none; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block; }
|
||||
.btn:hover { background-color: #0069d9; }
|
||||
.btn-warning { background-color: #ffc107; color: #212529; }
|
||||
.btn-warning:hover { background-color: #e0a800; }
|
||||
.btn:disabled { background-color: #6c757d; cursor: not-allowed; }
|
||||
.config-actions { margin-top: 15px; padding-top: 10px; border-top: 1px solid #eee; }
|
||||
.config-actions .btn { width: 100%; }
|
||||
|
||||
/* Collapsible config args styling */
|
||||
.config-collapsible { margin-top: 10px; }
|
||||
.config-collapsible-header {
|
||||
cursor: pointer;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #eee;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.config-collapsible-header:hover { color: #333; }
|
||||
.config-collapsible-header i {
|
||||
margin-right: 8px;
|
||||
transition: transform 0.2s ease;
|
||||
font-size: 12px;
|
||||
}
|
||||
.config-collapsible-content {
|
||||
display: none;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
/* Fix config item spacing */
|
||||
.config-item {
|
||||
margin-bottom: 8px;
|
||||
padding: 4px 0;
|
||||
}
|
||||
.config-item:last-child { margin-bottom: 0; }
|
||||
.config-label {
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.config-value {
|
||||
color: #333;
|
||||
word-break: break-word;
|
||||
}
|
||||
.refresh-btn { float: right; margin-top: 10px; }
|
||||
.timestamp { font-size: 0.8em; color: #666; }
|
||||
|
||||
Reference in New Issue
Block a user