feat: enhance ecommerce UI — sidebar, transitions, ratio options, cancel buttons, i18n fixes

This commit is contained in:
Codex
2026-06-11 20:38:35 +08:00
parent 31c0e79e2e
commit 9b9a276014
10 changed files with 555 additions and 196 deletions
+81 -54
View File
@@ -37,11 +37,11 @@
display: grid;
grid-template-columns: auto minmax(96px, 1fr) auto;
align-items: center;
gap: 18px;
min-height: 58px;
gap: 14px;
min-height: 46px;
border-bottom: 1px solid #242a33;
background: #11151b;
padding: 10px 16px;
padding: 6px 16px;
}
.ecom-video-flowbar__title {
@@ -224,7 +224,7 @@
min-height: 0;
overflow: auto;
background: #101318;
padding: 32px 40px;
padding: 20px 40px;
display: flex;
align-items: flex-start;
justify-content: center;
@@ -1209,8 +1209,10 @@
width: 420px;
max-width: 90vw;
height: 100vh;
background: #1a1d24;
box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
background:
radial-gradient(circle at 100% 0%, rgba(30, 189, 219, 0.04), transparent 18rem),
#fbfdfe;
box-shadow: -4px 0 24px rgba(20, 80, 100, 0.1);
animation: ecom-history-slide-in 0.25s ease-out;
}
@@ -1224,29 +1226,45 @@
align-items: center;
gap: 8px;
padding: 16px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
color: #fff;
border-bottom: 1px solid rgba(30, 189, 219, 0.15);
color: #10202c;
font-size: 15px;
font-weight: 500;
font-weight: 600;
}
.ecom-video-history-panel__close {
.ecom-video-history-panel__actions {
margin-left: auto;
display: grid;
width: 28px;
height: 28px;
place-items: center;
border: none;
border-radius: 6px;
background: transparent;
color: rgba(255, 255, 255, 0.6);
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
}
.ecom-video-history-panel__close:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
.ecom-video-history-panel__close,
.ecom-video-history-panel__save {
display: inline-flex;
align-items: center;
gap: 4px;
height: 32px;
padding: 0 12px;
border: 1px solid rgba(30, 189, 219, 0.18);
border-radius: 8px;
background: rgba(30, 189, 219, 0.04);
color: #6b7c88;
font-size: 13px;
cursor: pointer;
transition: border-color 150ms, background 150ms, color 150ms;
}
.ecom-video-history-panel__close:hover,
.ecom-video-history-panel__save:hover {
border-color: rgba(30, 189, 219, 0.45);
background: rgba(30, 189, 219, 0.1);
color: #1073cc;
}
.ecom-video-history-panel__save {
color: #1073cc;
font-weight: 600;
}
.ecom-video-history-panel__body {
@@ -1265,15 +1283,20 @@
justify-content: center;
gap: 12px;
padding: 60px 20px;
color: rgba(255, 255, 255, 0.4);
color: #a0b8c8;
font-size: 14px;
}
.ecom-video-history-card {
border: 1px solid rgba(255, 255, 255, 0.08);
border: 1px solid rgba(30, 189, 219, 0.12);
border-radius: 10px;
background: rgba(255, 255, 255, 0.03);
background: #ffffff;
padding: 14px;
transition: border-color 150ms;
}
.ecom-video-history-card:hover {
border-color: rgba(30, 189, 219, 0.25);
}
.ecom-video-history-card__header {
@@ -1284,7 +1307,7 @@
}
.ecom-video-history-card__title {
color: #fff;
color: #10202c;
font-size: 13px;
font-weight: 500;
flex: 1;
@@ -1294,7 +1317,7 @@
}
.ecom-video-history-card__date {
color: rgba(255, 255, 255, 0.4);
color: #6b7c88;
font-size: 11px;
white-space: nowrap;
}
@@ -1307,14 +1330,15 @@
border: none;
border-radius: 4px;
background: transparent;
color: rgba(255, 255, 255, 0.35);
color: #a0b8c8;
font-size: 12px;
cursor: pointer;
transition: background 150ms, color 150ms;
}
.ecom-video-history-card__delete:hover {
background: rgba(255, 80, 80, 0.15);
color: #ff5050;
background: rgba(239, 68, 68, 0.1);
color: #ef4444;
}
.ecom-video-history-card__scenes {
@@ -1331,7 +1355,7 @@
height: 60px;
border-radius: 6px;
overflow: hidden;
background: rgba(255, 255, 255, 0.05);
background: rgba(30, 189, 219, 0.06);
}
.ecom-video-history-card__scene img {
@@ -1368,24 +1392,26 @@
justify-content: center;
gap: 12px;
padding: 12px 20px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.6);
border-top: 1px solid rgba(30, 189, 219, 0.12);
color: #6b7c88;
font-size: 12px;
}
.ecom-video-history-panel__pager button {
padding: 4px 10px;
border: 1px solid rgba(255, 255, 255, 0.15);
border: 1px solid rgba(30, 189, 219, 0.18);
border-radius: 4px;
background: transparent;
color: rgba(255, 255, 255, 0.7);
background: rgba(30, 189, 219, 0.04);
color: #6b7c88;
font-size: 12px;
cursor: pointer;
transition: border-color 150ms, background 150ms, color 150ms;
}
.ecom-video-history-panel__pager button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.1);
color: #fff;
background: rgba(30, 189, 219, 0.1);
color: #1073cc;
border-color: rgba(30, 189, 219, 0.3);
}
.ecom-video-history-panel__pager button:disabled {
@@ -1401,7 +1427,7 @@
z-index: 9999;
display: grid;
place-items: center;
background: rgba(0, 0, 0, 0.6);
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(4px);
}
@@ -1412,23 +1438,23 @@
gap: 16px;
padding: 28px 32px;
border-radius: 12px;
background: #1e2128;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
background: #ffffff;
border: 1px solid rgba(30, 189, 219, 0.15);
box-shadow: 0 8px 32px rgba(20, 80, 100, 0.15);
max-width: 340px;
text-align: center;
}
.ecom-video-confirm-dialog__icon {
font-size: 36px;
color: #faad14;
color: #f59e0b;
}
.ecom-video-confirm-dialog__text {
margin: 0;
font-size: 14px;
line-height: 1.6;
color: rgba(255, 255, 255, 0.85);
color: #10202c;
}
.ecom-video-confirm-dialog__actions {
@@ -1439,26 +1465,27 @@
.ecom-video-confirm-dialog__actions button {
padding: 6px 20px;
border: 1px solid rgba(255, 255, 255, 0.15);
border: 1px solid rgba(30, 189, 219, 0.18);
border-radius: 6px;
background: transparent;
color: rgba(255, 255, 255, 0.8);
background: rgba(30, 189, 219, 0.04);
color: #6b7c88;
font-size: 13px;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ecom-video-confirm-dialog__actions button:hover {
background: rgba(255, 255, 255, 0.08);
background: rgba(30, 189, 219, 0.1);
color: #1073cc;
}
.ecom-video-confirm-dialog__actions button.is-danger {
background: #ff4d4f;
border-color: #ff4d4f;
background: #ef4444;
border-color: #ef4444;
color: #fff;
}
.ecom-video-confirm-dialog__actions button.is-danger:hover {
background: #ff7875;
border-color: #ff7875;
background: #f87171;
border-color: #f87171;
}
+22 -5
View File
@@ -43,6 +43,27 @@
transition: width 80ms linear;
}
.ecommerce-progress-bar__cancel {
flex: 0 0 auto;
padding: 3px 14px;
border: 1px solid rgba(255, 77, 79, 0.22);
border-radius: 999px;
background: rgba(255, 255, 255, 0.96);
color: #ff4d4f;
font-size: 12px;
font-weight: 700;
white-space: nowrap;
cursor: pointer;
box-shadow: 0 2px 10px rgba(255, 77, 79, 0.12);
transition: background 180ms ease, box-shadow 180ms ease;
}
.ecommerce-progress-bar__cancel:hover {
background: #ff4d4f;
color: #ffffff;
box-shadow: 0 4px 16px rgba(255, 77, 79, 0.24);
}
.ecommerce-progress-bar__value {
font-size: 12px;
font-weight: 900;
@@ -11215,12 +11236,8 @@
.ecommerce-standalone .product-clone-page[data-tool="clone"] .ecom-command-quick-board {
border: 1px solid rgba(30, 189, 219, 0.12) !important;
border-radius: 22px !important;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(249, 253, 255, 0.62)),
rgba(255, 255, 255, 0.58) !important;
background: #feffff !important;
box-shadow: 0 22px 58px rgba(16, 115, 204, 0.08) !important;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
.ecommerce-standalone .product-clone-page[data-tool="clone"] .ecom-command-quick-board button {