add context menu selection preview

This commit is contained in:
jeffvli
2025-11-28 17:47:12 -08:00
parent dbad1088ea
commit 4fc036f4ea
11 changed files with 224 additions and 17 deletions
@@ -0,0 +1,91 @@
.container {
position: relative;
width: 100%;
}
.divider {
height: 1px;
margin: var(--theme-spacing-xs) 0;
background: none;
border: none;
border-top: 1px solid var(--theme-colors-border);
}
.preview {
display: flex;
align-items: center;
padding: var(--theme-spacing-sm) var(--theme-spacing-md);
border-radius: var(--theme-radius-sm);
}
.content {
display: flex;
gap: var(--theme-spacing-sm);
align-items: center;
width: 100%;
}
.image-container {
position: relative;
flex-shrink: 0;
width: 40px;
height: 40px;
overflow: hidden;
border-radius: var(--theme-radius-sm);
box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
.image {
width: 100%;
height: 100%;
object-fit: cover;
}
.image-overlay {
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(135deg, rgb(255 255 255 / 10%) 0%, rgb(0 0 0 / 10%) 100%);
}
.icon-container {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: linear-gradient(
135deg,
var(--theme-colors-surface) 0%,
var(--theme-colors-background) 100%
);
border: 1px solid var(--theme-colors-border);
border-radius: var(--theme-radius-sm);
box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
.text-container {
display: flex;
flex: 1;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.name {
overflow: hidden;
text-overflow: ellipsis;
font-size: var(--theme-font-size-sm);
font-weight: 600;
line-height: 1.4;
color: var(--theme-colors-foreground);
white-space: nowrap;
}
.count {
font-size: var(--theme-font-size-xs);
font-weight: 500;
line-height: 1.2;
color: var(--theme-colors-foreground-muted);
}