chức năng dashboard
This commit is contained in:
@@ -541,9 +541,9 @@ canvas {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
max-width: 1100px;
|
||||
}
|
||||
.content.content--overview {
|
||||
.content.content--dashboard {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
max-width: 900px;
|
||||
max-width: 1100px;
|
||||
}
|
||||
.content.content--config {
|
||||
grid-template-columns: var(--leftPaneW, 460px) 10px 1fr;
|
||||
@@ -861,6 +861,96 @@ canvas {
|
||||
.missionConfigGrid { display: grid; gap: 12px; }
|
||||
.missionConfigGrid .rowWide { grid-template-columns: 1fr; gap: 6px; }
|
||||
|
||||
.dashboardPage { display: grid; gap: 16px; min-width: 0; width: 100%; }
|
||||
.dashboardToolbar { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.dashboardGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
.dashboardGrid--edit .dashboardWidget { outline: 2px dashed rgba(37, 99, 235, 0.25); outline-offset: 2px; }
|
||||
.dashboardWidget {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: #fff;
|
||||
box-shadow: var(--shadow);
|
||||
overflow: hidden;
|
||||
min-height: 140px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.dashboardWidgetHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--panel2);
|
||||
}
|
||||
.dashboardWidgetTitle { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
|
||||
.dashboardWidgetChrome { display: flex; gap: 6px; }
|
||||
.dashboardWidgetBody { padding: 12px; display: grid; gap: 10px; flex: 1; align-content: start; }
|
||||
.dashboardWidgetHint { margin: 0; font-size: 11px; }
|
||||
.dashboardMissionBtn,
|
||||
.dashboardMissionGroupBtn {
|
||||
appearance: none;
|
||||
width: 100%;
|
||||
border: 1px solid rgba(37, 99, 235, 0.25);
|
||||
background: linear-gradient(180deg, #eff6ff, #dbeafe);
|
||||
color: #1e3a8a;
|
||||
border-radius: 12px;
|
||||
padding: 14px 12px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.dashboardMissionBtn:hover,
|
||||
.dashboardMissionGroupBtn:hover { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow); }
|
||||
.dashboardMissionBtnIcon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 999px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: rgba(37, 99, 235, 0.15);
|
||||
font-size: 12px;
|
||||
}
|
||||
.dashboardMissionGroupList { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
|
||||
.dashboardMissionGroupBtn { padding: 10px 12px; font-size: 13px; justify-content: flex-start; }
|
||||
.dashboardQueueRunner {
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
background: #f8fafc;
|
||||
font-size: 12px;
|
||||
}
|
||||
.dashboardQueueRunner.running { background: #eff6ff; border-color: rgba(37, 99, 235, 0.25); color: #1e3a8a; }
|
||||
.dashboardQueueRunner.paused { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
|
||||
.dashboardQueueList { display: grid; gap: 6px; max-height: 180px; overflow: auto; }
|
||||
.missionQueueItem.compact { grid-template-columns: 1fr auto; padding: 8px 10px; }
|
||||
.missionQueueWidgetActions { display: flex; align-items: center; }
|
||||
.dashboardPauseBtn {
|
||||
appearance: none;
|
||||
width: 100%;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
background: #fff7ed;
|
||||
color: #9a3412;
|
||||
}
|
||||
.dashboardPauseBtn.is-paused { background: #ecfdf5; color: #047857; }
|
||||
.dashboardPauseBtn:disabled { opacity: 0.45; cursor: not-allowed; }
|
||||
.dashboardInfoCard .dashboardInfoGrid { display: grid; gap: 8px; }
|
||||
.dashboardEmpty { text-align: center; padding: 12px 0 0; }
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.shell { grid-template-columns: 1fr; }
|
||||
.sidebar { position: relative; height: auto; }
|
||||
|
||||
Reference in New Issue
Block a user