Revert account storage UI change for handoff to owning chat
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-09-29 12:02:14 +02:00
1 parent f446deb938
commit a9f4b69ba7
4 files changed
+4 -11

No files matched your search

+1 -5
View File
@@ -62,11 +62,7 @@
const used = formatAmount(storage?.used); const used = formatAmount(storage?.used);
const total = formatAmount(storage?.total); const total = formatAmount(storage?.total);
if (!used || !total || storage.total.value <= 0) return null; if (!used || !total || storage.total.value <= 0) return null;
const amountInBytes = amount => amount.value * (amount.unit.includes('I') ? 1024 : 1000) ** 'BKMGTPE'.indexOf(amount.unit[0]); return `${used} ${String(locale).startsWith('de') ? 'von' : 'of'} ${total}`;
const percent = amountInBytes(storage.used) / amountInBytes(storage.total) * 100;
if (!Number.isFinite(percent)) return null;
const percentage = new Intl.NumberFormat(locale, { maximumFractionDigits: 1 }).format(percent);
return `${used} ${String(locale).startsWith('de') ? 'von' : 'of'} ${total} (${percentage}%)`;
} }
const accountStatus = { const accountStatus = {
+1 -1
View File
@@ -7614,7 +7614,7 @@ function _buildAccountCardHtml(name, account, idx) {
const checkLabel = statusPresentation.requiresOtp ? 'Neuen Code anfordern' : 'Prüfen'; const checkLabel = statusPresentation.requiresOtp ? 'Neuen Code anfordern' : 'Prüfen';
const storageText = name === 'voe.sx' ? window.AccountStatus.formatAccountStorage(st.storage, getUiLocale()) : null; const storageText = name === 'voe.sx' ? window.AccountStatus.formatAccountStorage(st.storage, getUiLocale()) : null;
const storageHtml = storageText const storageHtml = storageText
? `<div class="account-card-storage"><svg class="account-storage-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 4.5h14l2 10v5H3v-5l2-10Z"></path><path d="M3 14.5h18M6.5 17h.01M10 17h.01M8 8h8"></path></svg><span>${escapeHtml(localizeUiText('Speicher'))}: ${escapeHtml(storageText)}</span></div>` ? `<div class="account-card-storage">${escapeHtml(localizeUiText('Speicher'))}: ${escapeHtml(storageText)}</div>`
: ''; : '';
const sessionPauseKey = `${name}:${account.id}`; const sessionPauseKey = `${name}:${account.id}`;
+2 -4
View File
@@ -1531,11 +1531,9 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
} }
.account-card:hover { background: var(--bg-card-hover); } .account-card:hover { background: var(--bg-card-hover); }
.account-card-info { flex: 1; min-width: 0; } .account-card-info { flex: 1; min-width: 0; }
.account-card-storage { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: 4px; overflow-wrap: anywhere; } .account-card-storage { font-size: 12px; color: var(--text-muted); margin-top: 4px; overflow-wrap: anywhere; }
.account-card-storage > span { min-width: 0; }
.account-storage-icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-card-title { font-size: 14px; font-weight: 600; } .account-card-title { font-size: 14px; font-weight: 600; }
.account-card-subtitle { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: 3px; overflow-wrap: anywhere; } .account-card-subtitle { font-size: 11px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-otp-action { display: flex; align-items: center; gap: 6px; margin-top: 8px; } .account-otp-action { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.account-otp-input { width: 150px; min-height: 28px; padding: 5px 8px; font-size: 11px; } .account-otp-input { width: 150px; min-height: 28px; padding: 5px 8px; font-size: 11px; }
.account-card-actions { display: flex; gap: 6px; flex-shrink: 0; } .account-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
-1
View File
@@ -69,7 +69,6 @@ const sourceFiles = [
'lib/upload-diagnostics.js', 'lib/upload-diagnostics.js',
'lib/upload-manager.js', 'lib/upload-manager.js',
'lib/vidmoly-upload.js', 'lib/vidmoly-upload.js',
'lib/voe-account-storage.js',
'lib/voe-upload.js', 'lib/voe-upload.js',
'lib/webhook-notify.js', 'lib/webhook-notify.js',
'main.js', 'main.js',