update
This commit is contained in:
@@ -59,16 +59,18 @@ export class SioConversationSelector extends DeesElement {
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: ${unsafeCSS(spacing[4])};
|
||||
padding: ${unsafeCSS(spacing["5"])} ${unsafeCSS(spacing["4"])};
|
||||
border-bottom: 1px solid ${bdTheme('border')};
|
||||
background: ${bdTheme('background')};
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.5;
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.2;
|
||||
font-weight: 600;
|
||||
margin: 0 0 ${unsafeCSS(spacing[3])} 0;
|
||||
margin: 0 0 ${unsafeCSS(spacing["4"])} 0;
|
||||
color: ${bdTheme('foreground')};
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
@@ -77,29 +79,32 @@ export class SioConversationSelector extends DeesElement {
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
padding: ${unsafeCSS(spacing[2])} ${unsafeCSS(spacing[10])} ${unsafeCSS(spacing[2])} ${unsafeCSS(spacing[3])};
|
||||
background: ${bdTheme('muted')};
|
||||
padding: ${unsafeCSS(spacing["2.5"])} ${unsafeCSS(spacing["10"])} ${unsafeCSS(spacing["2.5"])} ${unsafeCSS(spacing["3"])};
|
||||
background: ${bdTheme('background')};
|
||||
border: 1px solid ${bdTheme('border')};
|
||||
border-radius: ${unsafeCSS(radius.md)};
|
||||
font-size: 14px;
|
||||
border-radius: ${unsafeCSS(radius.lg)};
|
||||
font-size: 0.875rem;
|
||||
color: ${bdTheme('foreground')};
|
||||
outline: none;
|
||||
transition: ${unsafeCSS(transitions.all)};
|
||||
font-family: ${unsafeCSS(fontFamilies.sans)};
|
||||
box-shadow: ${unsafeCSS(shadows.sm)};
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: ${bdTheme('mutedForeground')};
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
background: ${bdTheme('background')};
|
||||
border-color: ${bdTheme('ring')};
|
||||
box-shadow: 0 0 0 3px ${bdTheme('ring')}20;
|
||||
background: ${bdTheme('background')};
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
right: ${unsafeCSS(spacing[3])};
|
||||
right: ${unsafeCSS(spacing["3"])};
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: ${bdTheme('mutedForeground')};
|
||||
@@ -108,64 +113,116 @@ export class SioConversationSelector extends DeesElement {
|
||||
.conversation-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: ${unsafeCSS(spacing[2])};
|
||||
padding: ${unsafeCSS(spacing["2"])};
|
||||
}
|
||||
|
||||
.conversation-item {
|
||||
padding: ${unsafeCSS(spacing[3])};
|
||||
margin-bottom: ${unsafeCSS(spacing[2])};
|
||||
padding: ${unsafeCSS(spacing["3.5"])};
|
||||
margin-bottom: ${unsafeCSS(spacing["1.5"])};
|
||||
background: ${bdTheme('background')};
|
||||
border: 1px solid ${bdTheme('border')};
|
||||
border-radius: ${unsafeCSS(radius.md)};
|
||||
border: 1px solid transparent;
|
||||
border-radius: ${unsafeCSS(radius.lg)};
|
||||
cursor: pointer;
|
||||
transition: ${unsafeCSS(transitions.all)};
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.conversation-item:hover {
|
||||
background: ${bdTheme('accent')};
|
||||
transform: translateX(2px);
|
||||
box-shadow: ${unsafeCSS(shadows.sm)};
|
||||
}
|
||||
|
||||
.conversation-item.selected {
|
||||
background: ${bdTheme('accent')};
|
||||
border-color: ${bdTheme('primary')};
|
||||
border-color: ${bdTheme('border')};
|
||||
box-shadow: ${unsafeCSS(shadows.sm)};
|
||||
}
|
||||
|
||||
.conversation-item.selected::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 3px;
|
||||
height: 60%;
|
||||
background: ${bdTheme('primary')};
|
||||
border-radius: 0 3px 3px 0;
|
||||
animation: slideIn 200ms ease-out;
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
width: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
width: 3px;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.conversation-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: ${unsafeCSS(spacing[1])};
|
||||
margin-bottom: ${unsafeCSS(spacing["1"])};
|
||||
}
|
||||
|
||||
.conversation-title {
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
color: ${bdTheme('foreground')};
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: ${unsafeCSS(spacing[2])};
|
||||
gap: ${unsafeCSS(spacing["2"])};
|
||||
font-size: 0.9375rem;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.conversation-time {
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.5;
|
||||
color: ${bdTheme('mutedForeground')};
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.conversation-preview {
|
||||
font-size: 0.875rem;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.5;
|
||||
color: ${bdTheme('mutedForeground')};
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
margin-top: ${unsafeCSS(spacing["0.5"])};
|
||||
}
|
||||
|
||||
.unread-dot {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background: ${bdTheme('primary')};
|
||||
border-radius: 50%;
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
box-shadow: 0 0 0 0 ${bdTheme('primary')};
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
box-shadow: 0 0 0 0 ${bdTheme('primary')}40;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.9;
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 0 0 4px ${bdTheme('primary')}00;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
box-shadow: 0 0 0 0 ${bdTheme('primary')}00;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
@@ -174,10 +231,10 @@ export class SioConversationSelector extends DeesElement {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
padding: ${unsafeCSS(spacing[4])};
|
||||
padding: ${unsafeCSS(spacing["4"])};
|
||||
text-align: center;
|
||||
color: ${bdTheme('mutedForeground')};
|
||||
gap: ${unsafeCSS(spacing[3])};
|
||||
gap: ${unsafeCSS(spacing["3"])};
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
|
||||
Reference in New Issue
Block a user