feat: add per-integration content tabs to product edit form with CSS and JS

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 18:21:56 +01:00
parent 571f0a990f
commit a70b327960
3 changed files with 269 additions and 16 deletions

View File

@@ -804,6 +804,48 @@ a {
border-radius: 10px;
background: #fff;
padding: 10px;
overflow: hidden;
&__meta {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 8px;
min-width: 0;
}
}
.product-show-image-path {
font-size: 12px;
min-width: 0;
overflow: hidden;
summary {
cursor: pointer;
color: var(--c-muted, #888);
list-style: none;
user-select: none;
white-space: nowrap;
&::-webkit-details-marker {
display: none;
}
&::after {
content: '';
}
}
&[open] summary::after {
content: '';
}
&__url {
margin-top: 4px;
word-break: break-all;
overflow-wrap: break-word;
font-size: 11px;
}
}
.product-show-image {
@@ -814,6 +856,49 @@ a {
border: 1px solid #d9e0ea;
}
.content-tabs-card {
margin-top: 0;
}
.content-tabs-nav {
display: flex;
gap: 4px;
border-bottom: 2px solid var(--c-border);
margin-bottom: 16px;
flex-wrap: wrap;
}
.content-tab-btn {
padding: 8px 16px;
border: none;
background: none;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: var(--c-text-muted, #6b7280);
border-bottom: 2px solid transparent;
margin-bottom: -2px;
border-radius: 4px 4px 0 0;
transition: color 0.15s, border-color 0.15s;
&:hover {
color: var(--c-text-strong, #111827);
}
&.is-active {
color: var(--c-primary, #2563eb);
border-bottom-color: var(--c-primary, #2563eb);
}
}
.content-tab-panel {
display: none;
&.is-active {
display: block;
}
}
@media (max-width: 768px) {
.app-shell {
grid-template-columns: 1fr;