feat(KB-119): complete Step 4 — fix attachment previews layout

This commit is contained in:
gsxdsm
2026-03-30 08:08:20 -07:00
parent e5c68b30e5
commit d74377a30f

View File

@@ -2130,16 +2130,20 @@ body {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
max-height: 120px;
overflow-y: auto;
padding: 2px;
}
.inline-create-preview {
position: relative;
width: 48px;
height: 48px;
border: 1px solid var(--border, #333);
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
background: var(--bg-secondary, #1a1a2e);
background: var(--card);
flex-shrink: 0;
}
@@ -2152,23 +2156,26 @@ body {
.inline-create-preview-remove {
position: absolute;
top: 1px;
right: 1px;
top: 2px;
right: 2px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.6);
color: #fff;
border: none;
border-radius: 50%;
width: 18px;
height: 18px;
width: 16px;
height: 16px;
cursor: pointer;
font-size: 12px;
line-height: 18px;
text-align: center;
font-size: 10px;
line-height: 1;
padding: 0;
transition: background 0.15s ease;
}
.inline-create-preview-remove:hover {
background: rgba(200, 0, 0, 0.8);
background: rgba(248, 81, 73, 0.9);
}
.dep-trigger-wrap {