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
+207 -7
View File
@@ -718,7 +718,7 @@
.ecommerce-auth-modal__panel {
border-color: rgba(16, 115, 204, 0.14) !important;
color: #10202c !important;
background: rgba(254, 255, 255, 0.96) !important;
background: #feffff !important;
box-shadow: 0 28px 90px rgba(16, 115, 204, 0.16), 0 12px 34px rgba(20, 80, 100, 0.08) !important;
animation: ecommerce-auth-panel-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@@ -2701,6 +2701,10 @@
width: min(1036px, calc(100% - 56px)) !important;
margin-right: 0 !important;
margin-left: 0 !important;
;
transition: top 520ms cubic-bezier(0.16, 1, 0.3, 1),
transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
width 520ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ecommerce-standalone .product-clone-page[data-tool="clone"] .ecom-command-composer-wrap.is-before-generate {
@@ -2709,7 +2713,7 @@
}
.ecommerce-standalone .product-clone-page[data-tool="clone"] .ecom-command-composer-wrap.has-generated {
top: 24px !important;
top: 48px !important;
transform: translateX(-50%) !important;
}
@@ -4123,7 +4127,127 @@
pointer-events: none !important;
}
/* ── Hot Video Page (爆款视频) ──────────────────────── */
/* ── Quick Page Sidebar — shared left nav for set / detail / hot-video ── */
.ecommerce-standalone .ecom-quick-page-wrap {
position: absolute !important;
inset: 0 !important;
display: flex !important;
min-height: 0 !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
gap: 4px !important;
flex: 0 0 88px !important;
width: 88px !important;
padding: 20px 10px !important;
border-right: 1px solid rgba(30, 189, 219, 0.1) !important;
background:
linear-gradient(180deg,
rgba(255, 255, 255, 0.96) 0%,
rgba(248, 250, 252, 0.94) 50%,
rgba(243, 247, 250, 0.92) 100%) !important;
backdrop-filter: blur(20px) !important;
-webkit-backdrop-filter: blur(20px) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button {
position: relative !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
gap: 4px !important;
width: 100% !important;
min-height: 66px !important;
padding: 10px 6px !important;
border: 0 !important;
border-radius: 12px !important;
background: transparent !important;
color: #7c8a96 !important;
font-size: 10px !important;
font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
font-weight: 500 !important;
letter-spacing: 0.01em !important;
line-height: 1.2 !important;
cursor: pointer !important;
transition:
background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button .anticon {
font-size: 22px !important;
transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button span:last-child {
display: block !important;
font-size: 10px !important;
font-weight: 500 !important;
letter-spacing: 0.02em !important;
line-height: 1.2 !important;
white-space: nowrap !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button:hover {
background: rgba(30, 189, 219, 0.07) !important;
color: #0d6bb8 !important;
transform: translateY(-1px) !important;
box-shadow: 0 4px 12px rgba(16, 115, 204, 0.08) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button:hover .anticon {
transform: scale(1.08) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button:active {
transform: translateY(0) !important;
box-shadow: none !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button.is-active {
background:
linear-gradient(135deg,
rgba(16, 115, 204, 0.12) 0%,
rgba(30, 189, 219, 0.08) 100%) !important;
color: #0d6bb8 !important;
font-weight: 700 !important;
box-shadow:
0 2px 8px rgba(16, 115, 204, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button.is-active::before {
content: "" !important;
position: absolute !important;
left: 0 !important;
top: 14px !important;
bottom: 14px !important;
width: 3px !important;
border-radius: 0 3px 3px 0 !important;
background:
linear-gradient(180deg,
#1073cc 0%,
#1ebddb 100%) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button.is-active .anticon {
color: #1073cc !important;
}
.ecommerce-standalone .ecom-quick-page-wrap > :not(.ecom-quick-page-sidebar) {
flex: 1 1 0% !important;
min-width: 0 !important;
min-height: 0 !important;
}
/* ── Hot Video Page (广告视频) ──────────────────────── */
.ecommerce-standalone .product-clone-page[data-tool="clone"].is-hot-video-page {
display: block !important;
overflow: hidden !important;
@@ -6417,6 +6541,14 @@
font-weight: 950 !important;
}
.ecommerce-standalone .ecom-quick-set-page-title {
margin-right: auto !important;
color: #10202c !important;
font-size: 17px !important;
font-weight: 950 !important;
letter-spacing: 0.02em !important;
}
.ecommerce-standalone .ecom-quick-set-panel-head strong {
color: #132435 !important;
font-size: 15px !important;
@@ -7017,12 +7149,76 @@
font-weight: 950 !important;
}
.ecommerce-standalone .ecom-quick-set-primary--cancel {
display: block !important;
position: static !important;
left: auto !important;
right: auto !important;
bottom: auto !important;
width: 100% !important;
margin-top: 8px !important;
min-height: 40px !important;
color: #ff4d4f !important;
background: rgba(255, 77, 79, 0.06) !important;
border: 1px solid rgba(255, 77, 79, 0.18) !important;
border-radius: 12px !important;
box-shadow: none !important;
font-size: 14px !important;
font-weight: 700 !important;
cursor: pointer !important;
transition: background 180ms ease, color 180ms ease, border-color 180ms ease !important;
}
.ecommerce-standalone .ecom-quick-set-primary--cancel:hover {
color: #ffffff !important;
background: #ff4d4f !important;
border-color: #ff4d4f !important;
}
.ecommerce-standalone .ecom-quick-set-primary:disabled {
color: #8fa1af !important;
background: #eef2f5 !important;
box-shadow: none !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-primary {
position: static !important;
left: auto !important;
right: auto !important;
bottom: auto !important;
width: 100% !important;
margin-top: auto !important;
flex: 0 0 auto !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel {
overflow-y: auto !important;
padding-bottom: 16px !important;
scrollbar-width: auto !important;
scrollbar-color: rgba(16, 115, 204, 0.56) rgba(16, 115, 204, 0.08) !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel::-webkit-scrollbar {
display: block !important;
width: 14px !important;
height: 14px !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel::-webkit-scrollbar-track {
border-radius: 999px !important;
background: rgba(16, 115, 204, 0.08) !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel::-webkit-scrollbar-thumb {
border: 3px solid rgba(248, 249, 250, 0.95) !important;
border-radius: 999px !important;
background: rgba(16, 115, 204, 0.56) !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel::-webkit-scrollbar-thumb:hover {
background: rgba(16, 115, 204, 0.72) !important;
}
.ecommerce-standalone .ecom-quick-detail-page .ecom-quick-set-primary {
position: static !important;
left: auto !important;
@@ -7384,7 +7580,8 @@
box-shadow: 0 8px 18px rgba(16, 115, 204, 0.18) !important;
}
.ecommerce-standalone .ecom-smart-cutout-transition {
.ecommerce-standalone .ecom-smart-cutout-transition,
.ecommerce-standalone .ecom-quick-page-transition {
position: fixed !important;
inset: 64px 0 0 !important;
z-index: 30 !important;
@@ -7399,7 +7596,8 @@
animation: ecom-smart-transition-in 260ms ease both !important;
}
.ecommerce-standalone .ecom-smart-cutout-transition span {
.ecommerce-standalone .ecom-smart-cutout-transition span,
.ecommerce-standalone .ecom-quick-page-transition span {
width: 56px !important;
height: 56px !important;
border: 4px solid rgba(30, 189, 219, 0.16) !important;
@@ -7409,14 +7607,16 @@
animation: ecom-smart-transition-spin 860ms linear infinite !important;
}
.ecommerce-standalone .ecom-smart-cutout-transition strong {
.ecommerce-standalone .ecom-smart-cutout-transition strong,
.ecommerce-standalone .ecom-quick-page-transition strong {
margin-top: 8px !important;
color: #10202c !important;
font-size: 20px !important;
font-weight: 800 !important;
}
.ecommerce-standalone .ecom-smart-cutout-transition em {
.ecommerce-standalone .ecom-smart-cutout-transition em,
.ecommerce-standalone .ecom-quick-page-transition em {
color: #6d7d88 !important;
font-size: 13px !important;
font-style: normal !important;
+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 {