update
This commit is contained in:
@@ -266,7 +266,17 @@ export class SioConversationSelector extends DeesElement {
|
|||||||
.conversation-list::-webkit-scrollbar-thumb:hover {
|
.conversation-list::-webkit-scrollbar-thumb:hover {
|
||||||
background: ${bdTheme('mutedForeground')};
|
background: ${bdTheme('mutedForeground')};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.close-button {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
|
// Mobile: show close button
|
||||||
|
cssManager.cssForPhablet(css`
|
||||||
|
.close-button {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
`),
|
||||||
];
|
];
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public render(): TemplateResult {
|
||||||
@@ -278,9 +288,17 @@ export class SioConversationSelector extends DeesElement {
|
|||||||
return html`
|
return html`
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header-top">
|
<div class="header-top">
|
||||||
|
<sio-button
|
||||||
|
class="close-button"
|
||||||
|
type="ghost"
|
||||||
|
size="sm"
|
||||||
|
@click=${() => this.handleClose()}
|
||||||
|
>
|
||||||
|
<sio-icon icon="x" size="20"></sio-icon>
|
||||||
|
</sio-button>
|
||||||
<h2 class="title">Messages</h2>
|
<h2 class="title">Messages</h2>
|
||||||
<sio-button
|
<sio-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="sm"
|
size="sm"
|
||||||
@click=${() => this.startNewConversation()}
|
@click=${() => this.startNewConversation()}
|
||||||
>
|
>
|
||||||
@@ -346,4 +364,11 @@ export class SioConversationSelector extends DeesElement {
|
|||||||
composed: true
|
composed: true
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private handleClose() {
|
||||||
|
this.dispatchEvent(new CustomEvent('close', {
|
||||||
|
bubbles: true,
|
||||||
|
composed: true
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -236,6 +236,7 @@ export class SioFab extends DeesElement {
|
|||||||
--fab-size: 48px;
|
--fab-size: 48px;
|
||||||
bottom: 16px;
|
bottom: 16px;
|
||||||
right: 16px;
|
right: 16px;
|
||||||
|
will-change: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#comboxContainer {
|
#comboxContainer {
|
||||||
|
|||||||
Reference in New Issue
Block a user