This commit is contained in:
2025-07-14 18:26:14 +00:00
parent f9d281c496
commit 5f48ecf7af
2 changed files with 28 additions and 3 deletions

View File

@@ -64,11 +64,18 @@ export class SioConversationSelector extends DeesElement {
background: ${bdTheme('background')};
}
.header-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: ${unsafeCSS(spacing["4"])};
}
.title {
font-size: 1.25rem;
line-height: 1.2;
font-weight: 600;
margin: 0 0 ${unsafeCSS(spacing["4"])} 0;
margin: 0;
color: ${bdTheme('foreground')};
letter-spacing: -0.025em;
}
@@ -270,7 +277,17 @@ export class SioConversationSelector extends DeesElement {
return html`
<div class="header">
<div class="header-top">
<h2 class="title">Messages</h2>
<sio-button
type="primary"
size="sm"
@click=${() => this.startNewConversation()}
>
<sio-icon icon="plus" size="16"></sio-icon>
New
</sio-button>
</div>
<div class="search-box">
<input
type="text"
@@ -321,4 +338,12 @@ export class SioConversationSelector extends DeesElement {
composed: true
}));
}
private startNewConversation() {
// Dispatch event for parent components to handle new conversation creation
this.dispatchEvent(new CustomEvent('new-conversation', {
bubbles: true,
composed: true
}));
}
}

View File

@@ -8,7 +8,7 @@ import {
css,
unsafeCSS,
state,
PropertyValues,
type PropertyValues,
} from '@design.estate/dees-element';
// Import design tokens