update
This commit is contained in:
@@ -64,11 +64,18 @@ export class SioConversationSelector extends DeesElement {
|
|||||||
background: ${bdTheme('background')};
|
background: ${bdTheme('background')};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: ${unsafeCSS(spacing["4"])};
|
||||||
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 0 0 ${unsafeCSS(spacing["4"])} 0;
|
margin: 0;
|
||||||
color: ${bdTheme('foreground')};
|
color: ${bdTheme('foreground')};
|
||||||
letter-spacing: -0.025em;
|
letter-spacing: -0.025em;
|
||||||
}
|
}
|
||||||
@@ -270,7 +277,17 @@ export class SioConversationSelector extends DeesElement {
|
|||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h2 class="title">Messages</h2>
|
<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">
|
<div class="search-box">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
@@ -321,4 +338,12 @@ export class SioConversationSelector extends DeesElement {
|
|||||||
composed: true
|
composed: true
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private startNewConversation() {
|
||||||
|
// Dispatch event for parent components to handle new conversation creation
|
||||||
|
this.dispatchEvent(new CustomEvent('new-conversation', {
|
||||||
|
bubbles: true,
|
||||||
|
composed: true
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
css,
|
css,
|
||||||
unsafeCSS,
|
unsafeCSS,
|
||||||
state,
|
state,
|
||||||
PropertyValues,
|
type PropertyValues,
|
||||||
} from '@design.estate/dees-element';
|
} from '@design.estate/dees-element';
|
||||||
|
|
||||||
// Import design tokens
|
// Import design tokens
|
||||||
|
|||||||
Reference in New Issue
Block a user