mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 17:45:42 +00:00
dd0889e3d6
Introduce a SessionManager for relay-based remote sessions in the Tauri MGMT client: new SessionCommand API, start/stop/session input routing, clipboard/recording/quality controls, and notification read/dismiss state. Wire AppState with new mutexes and show main window on startup. CI: add SBOM generation (anchore) and Trivy vulnerability scan steps. Misc: change console Docker DB path, large README/CHANGELOG updates (chat E2E, unattended access/WOL, i18n expansion, CDAP/SDK docs), and many web-nodejs assets/locales/routes/views/services and server-side changes.
301 lines
8.1 KiB
CSS
301 lines
8.1 KiB
CSS
/* ===================================================================
|
|
BetterDesk — Cross-Platform Compatibility
|
|
=================================================================== */
|
|
|
|
/* ---------- Tabs ---------- */
|
|
.crossplatform-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
margin-bottom: 20px;
|
|
padding-bottom: 0;
|
|
overflow-x: auto;
|
|
}
|
|
.crossplatform-tab {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 18px;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
border-bottom: 2px solid transparent;
|
|
white-space: nowrap;
|
|
transition: color .15s, border-color .15s;
|
|
}
|
|
.crossplatform-tab:hover { color: var(--text-primary, #e6edf3); }
|
|
.crossplatform-tab.active {
|
|
color: var(--accent-blue, #58a6ff);
|
|
border-bottom-color: var(--accent-blue, #58a6ff);
|
|
}
|
|
.crossplatform-tab .material-icons { font-size: 18px; }
|
|
|
|
/* ---------- Panels ---------- */
|
|
.crossplatform-panel { animation: cpFadeIn .2s ease; }
|
|
@keyframes cpFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
|
|
|
|
.crossplatform-hint {
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 13px;
|
|
margin: 0 0 16px;
|
|
}
|
|
|
|
/* ---------- Matrix Table ---------- */
|
|
.crossplatform-matrix-wrap { overflow-x: auto; }
|
|
.crossplatform-matrix-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
.crossplatform-matrix-table thead th {
|
|
background: var(--bg-tertiary, #161b22);
|
|
color: var(--text-secondary, #8b949e);
|
|
padding: 10px 12px;
|
|
text-align: center;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
white-space: nowrap;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
.crossplatform-matrix-table thead th:first-child { text-align: left; }
|
|
.crossplatform-matrix-table thead th .material-icons {
|
|
font-size: 16px;
|
|
vertical-align: middle;
|
|
margin-right: 2px;
|
|
}
|
|
.crossplatform-matrix-table tbody td {
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
text-align: center;
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
.crossplatform-matrix-table tbody td:first-child {
|
|
text-align: left;
|
|
font-weight: 500;
|
|
}
|
|
.crossplatform-matrix-table tbody tr:hover { background: rgba(88,166,255,.04); }
|
|
|
|
/* Status icons in matrix */
|
|
.cp-status { font-size: 18px; }
|
|
.cp-status.full { color: #3fb950; }
|
|
.cp-status.partial { color: #d29922; }
|
|
.cp-status.none { color: #484f58; }
|
|
.cp-status.planned { color: #58a6ff; }
|
|
|
|
/* Legend */
|
|
.crossplatform-legend {
|
|
display: flex;
|
|
gap: 18px;
|
|
margin-top: 14px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary, #8b949e);
|
|
flex-wrap: wrap;
|
|
}
|
|
.legend-item { display: flex; align-items: center; gap: 5px; }
|
|
.legend-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
}
|
|
.legend-icon.full { background: #3fb950; }
|
|
.legend-icon.partial { background: #d29922; }
|
|
.legend-icon.none { background: #484f58; }
|
|
.legend-icon.planned { background: #58a6ff; }
|
|
|
|
/* ---------- Distribution ---------- */
|
|
.crossplatform-dist-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.crossplatform-card {
|
|
background: var(--bg-secondary, #0d1117);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 8px;
|
|
padding: 18px;
|
|
}
|
|
.crossplatform-card h3 {
|
|
margin: 0 0 14px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
.crossplatform-card-wide { grid-column: 1 / -1; }
|
|
|
|
/* Bar chart in distribution */
|
|
.crossplatform-chart { min-height: 140px; }
|
|
.cp-bar-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
}
|
|
.cp-bar-label {
|
|
min-width: 90px;
|
|
color: var(--text-secondary, #8b949e);
|
|
text-transform: capitalize;
|
|
}
|
|
.cp-bar-track {
|
|
flex: 1;
|
|
height: 18px;
|
|
background: var(--bg-tertiary, #161b22);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
.cp-bar-fill {
|
|
height: 100%;
|
|
border-radius: 4px;
|
|
transition: width .4s ease;
|
|
}
|
|
.cp-bar-value {
|
|
min-width: 48px;
|
|
text-align: right;
|
|
color: var(--text-primary, #e6edf3);
|
|
font-weight: 500;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* Summary stats */
|
|
.crossplatform-summary-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.cp-summary-item { text-align: center; }
|
|
.cp-summary-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-primary, #e6edf3);
|
|
line-height: 1.2;
|
|
}
|
|
.cp-summary-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary, #8b949e);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ---------- Protocols ---------- */
|
|
.crossplatform-proto-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.crossplatform-proto-diagram { overflow-x: auto; }
|
|
#proto-svg { width: 100%; height: 200px; }
|
|
|
|
/* Bar list for codecs/features */
|
|
.crossplatform-barlist { min-height: 60px; }
|
|
.crossplatform-empty {
|
|
color: var(--text-secondary, #8b949e);
|
|
font-style: italic;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Code block */
|
|
.crossplatform-code {
|
|
background: var(--bg-tertiary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 6px;
|
|
padding: 14px 16px;
|
|
overflow-x: auto;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary, #e6edf3);
|
|
margin: 0;
|
|
}
|
|
.crossplatform-code code {
|
|
font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
|
|
}
|
|
|
|
/* ---------- Limitations ---------- */
|
|
.crossplatform-limitations-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.cp-limit-card {
|
|
background: var(--bg-secondary, #0d1117);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 8px;
|
|
padding: 18px;
|
|
}
|
|
.cp-limit-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.cp-limit-icon {
|
|
width: 36px; height: 36px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
}
|
|
.cp-limit-icon.windows { background: rgba(0,120,215,.15); color: #0078d7; }
|
|
.cp-limit-icon.linux { background: rgba(255,165,0,.12); color: #ffa500; }
|
|
.cp-limit-icon.macos { background: rgba(163,163,163,.12); color: #a3a3a3; }
|
|
.cp-limit-icon.android { background: rgba(61,220,132,.12); color: #3ddc84; }
|
|
.cp-limit-icon.ios { background: rgba(0,122,255,.12); color: #007aff; }
|
|
.cp-limit-icon.web { background: rgba(88,166,255,.12); color: #58a6ff; }
|
|
.cp-limit-icon.chromeos { background: rgba(66,133,244,.12); color: #4285f4; }
|
|
|
|
.cp-limit-name {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
.cp-limit-status {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-weight: 500;
|
|
margin-left: auto;
|
|
}
|
|
.cp-limit-status.production { background: rgba(63,185,80,.15); color: #3fb950; }
|
|
.cp-limit-status.testing { background: rgba(210,153,34,.15); color: #d29922; }
|
|
.cp-limit-status.planned { background: rgba(88,166,255,.15); color: #58a6ff; }
|
|
.cp-limit-status.limited { background: rgba(248,81,73,.15); color: #f85149; }
|
|
.cp-limit-status.experimental { background: rgba(163,113,247,.15); color: #a371f7; }
|
|
|
|
.cp-limit-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.cp-limit-list li {
|
|
position: relative;
|
|
padding: 5px 0 5px 18px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary, #8b949e);
|
|
line-height: 1.5;
|
|
}
|
|
.cp-limit-list li::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 12px;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--border-primary, #30363d);
|
|
}
|
|
|
|
/* ---------- Responsive ---------- */
|
|
@media (max-width: 768px) {
|
|
.crossplatform-dist-grid,
|
|
.crossplatform-proto-grid,
|
|
.crossplatform-limitations-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.crossplatform-tabs { gap: 2px; }
|
|
.crossplatform-tab { padding: 8px 12px; font-size: 12px; }
|
|
.crossplatform-tab span:not(.material-icons) { display: none; }
|
|
.cp-bar-label { min-width: 70px; font-size: 12px; }
|
|
}
|