Window discovery:
- Add display-wide search as final fallback (any window on the Xvfb)
- Also search by WM_CLASS for Electron apps
- Increase timeout to 60s, log progress and early crashes
- Add restart endpoint POST /api/display/apps/{id}/restart
Panel apps:
- Replace play/stop button with ⋮ context menu (Start, Stop, Restart)
- LED indicator: green=running, amber pulsing=starting, red=stopped/error
- Add status field to app API response
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
411 lines
7.8 KiB
CSS
411 lines
7.8 KiB
CSS
/* Right Panel — 240px system info + services */
|
|
.panel {
|
|
width: var(--panel-width);
|
|
min-width: var(--panel-width);
|
|
height: 100dvh;
|
|
background: var(--bg-panel);
|
|
border-left: 1px solid var(--border-structural);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.panel-section {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border-structural);
|
|
}
|
|
|
|
.panel-section:last-child {
|
|
border-bottom: none;
|
|
flex: 1;
|
|
}
|
|
|
|
.panel-section-title {
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
letter-spacing: 1.5px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Info section */
|
|
.panel-hostname {
|
|
font-family: var(--font-mono);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.panel-datetime {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.panel-date {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.panel-time {
|
|
font-family: var(--font-mono);
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Network */
|
|
.panel-net-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 0;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.panel-net-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.panel-net-dot.up { background: var(--status-green); }
|
|
.panel-net-dot.down { background: var(--status-red); }
|
|
|
|
.panel-net-name {
|
|
color: var(--text-primary);
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.panel-net-ip {
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* Stats */
|
|
.stat-row {
|
|
display: grid;
|
|
grid-template-columns: 40px 1fr;
|
|
grid-template-rows: auto auto;
|
|
gap: 2px 8px;
|
|
margin-bottom: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.stat-label {
|
|
grid-row: 1 / 3;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
text-align: right;
|
|
}
|
|
|
|
.stat-bar {
|
|
height: 4px;
|
|
background: var(--border-structural);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stat-bar-fill {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
background: var(--status-green);
|
|
transition: width var(--transition-base), background-color var(--transition-base);
|
|
width: 0%;
|
|
}
|
|
|
|
.stat-bar-fill.warn { background: var(--status-amber); }
|
|
.stat-bar-fill.crit { background: var(--status-red); }
|
|
|
|
/* Applications (docked GUI apps) */
|
|
.panel-app-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.panel-app-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 38px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.panel-app-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--border-component);
|
|
flex-shrink: 0;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.panel-app-dot.running {
|
|
background: var(--status-green);
|
|
}
|
|
|
|
.panel-app-dot.starting {
|
|
background: var(--status-amber);
|
|
animation: pulse-dot 1.2s ease-in-out infinite;
|
|
}
|
|
|
|
.panel-app-dot.stopped,
|
|
.panel-app-dot.error {
|
|
background: var(--status-red);
|
|
}
|
|
|
|
@keyframes pulse-dot {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.3; }
|
|
}
|
|
|
|
.panel-app-icon {
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.panel-app-name {
|
|
flex: 1;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.panel-app-name:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.panel-app-action {
|
|
width: 28px;
|
|
height: 28px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.panel-app-action:hover {
|
|
background: var(--accent-hover);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.panel-app-action:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Panel app context menu */
|
|
.panel-app-menu {
|
|
position: fixed;
|
|
z-index: 500;
|
|
background: var(--bg-titlebar);
|
|
border: 1px solid var(--border-structural);
|
|
border-radius: var(--radius-md);
|
|
padding: 4px;
|
|
min-width: 140px;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
|
}
|
|
|
|
.panel-app-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
min-height: 36px;
|
|
background: none;
|
|
border: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
color: var(--text-primary);
|
|
font-family: var(--font-ui);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.panel-app-menu-item:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.panel-app-menu-item.danger {
|
|
color: var(--status-red);
|
|
}
|
|
|
|
.panel-app-menu-item:disabled {
|
|
color: var(--text-muted);
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.panel-app-menu-item:disabled:hover {
|
|
background: none;
|
|
}
|
|
|
|
.panel-app-add {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 32px;
|
|
margin-top: 8px;
|
|
background: none;
|
|
border: 1px dashed var(--border-structural);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.panel-app-add:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
/* Update status */
|
|
.panel-updates {
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.update-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.update-status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.update-status-dot.current {
|
|
background: var(--status-green);
|
|
}
|
|
|
|
.update-status-dot.available {
|
|
background: var(--status-amber);
|
|
}
|
|
|
|
.update-status-title {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.update-status-hash {
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.update-status-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.update-install-btn {
|
|
flex-shrink: 0;
|
|
height: 26px;
|
|
padding: 0 12px;
|
|
background: var(--accent);
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
color: #fff;
|
|
font-family: var(--font-ui);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.update-install-btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.update-install-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* New packages needed by update */
|
|
.update-packages {
|
|
margin-top: 10px;
|
|
padding: 8px 10px;
|
|
background: color-mix(in srgb, var(--status-amber) 10%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--status-amber) 30%, transparent);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.update-packages-title {
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
color: var(--status-amber);
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.update-packages-list {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
color: var(--text-primary);
|
|
word-break: break-word;
|
|
line-height: 1.4;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.update-packages-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
user-select: none;
|
|
}
|
|
|
|
.update-packages-toggle input[type="checkbox"] {
|
|
width: 13px;
|
|
height: 13px;
|
|
accent-color: var(--accent);
|
|
cursor: pointer;
|
|
}
|