fix: stabilize weibo insight ui and cookie flow

This commit is contained in:
Jason
2026-04-12 23:36:20 +08:00
parent 6225df296c
commit 24eceef6cb
3 changed files with 146 additions and 8 deletions

View File

@@ -1849,6 +1849,20 @@
animation: fadeIn 0.2s ease;
}
.social-cookie-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.52);
display: flex;
align-items: center;
justify-content: center;
z-index: 2300;
animation: fadeIn 0.2s ease;
}
// API 警告弹窗
.api-warning-modal {
width: 420px;
@@ -1920,6 +1934,9 @@
.settings-inline-modal {
width: min(560px, calc(100vw - 40px));
max-height: min(720px, calc(100vh - 40px));
display: flex;
flex-direction: column;
background: var(--bg-primary);
border-radius: 16px;
overflow: hidden;
@@ -1946,7 +1963,9 @@
}
.modal-body {
flex: 1;
padding: 20px 24px;
overflow-y: auto;
.warning-text {
margin: 0 0 16px;
@@ -3580,6 +3599,103 @@
overflow: hidden;
}
&.insight-social-tab {
.anti-revoke-list-header {
grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) auto;
.insight-social-column-title {
color: var(--text-tertiary);
}
}
.anti-revoke-row {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) auto;
align-items: center;
gap: 14px;
}
.anti-revoke-row-main {
min-width: 0;
}
.insight-social-binding-cell {
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px 10px;
align-items: center;
}
.insight-social-binding-input-wrap {
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
}
.binding-platform-chip {
flex-shrink: 0;
border-radius: 999px;
padding: 2px 8px;
font-size: 11px;
color: var(--text-secondary);
border: 1px solid color-mix(in srgb, var(--border-color) 84%, transparent);
background: color-mix(in srgb, var(--bg-secondary) 88%, var(--bg-primary) 12%);
}
.insight-social-binding-input {
width: 100%;
min-width: 0;
height: 30px;
border-radius: 8px;
border: 1px solid var(--border-color);
background: color-mix(in srgb, var(--bg-primary) 92%, var(--bg-secondary) 8%);
color: var(--text-primary);
font-size: 12px;
padding: 0 10px;
outline: none;
transition: border-color 0.18s ease, box-shadow 0.18s ease;
&:focus {
border-color: color-mix(in srgb, var(--primary) 55%, var(--border-color));
box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 16%, transparent);
}
}
.insight-social-binding-actions {
display: inline-flex;
align-items: center;
justify-self: flex-end;
gap: 8px;
}
.insight-social-binding-feedback {
grid-column: 1 / span 2;
min-height: 18px;
}
.binding-feedback {
font-size: 12px;
line-height: 1.4;
color: var(--text-secondary);
&.error {
color: color-mix(in srgb, var(--danger) 72%, var(--text-primary) 28%);
}
&.muted {
color: var(--text-tertiary);
}
}
.anti-revoke-row-status {
justify-self: flex-end;
align-items: flex-end;
max-width: none;
}
}
@media (max-width: 980px) {
.anti-revoke-hero {
flex-direction: column;