Skip to content

Commit

Permalink
fix(chat): fix chat panel styles, fix #222
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 15, 2021
1 parent bc87290 commit 92873e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/plugin-chat/client/utils/panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ $padding: 1.5rem;
padding: 1rem 0;
display: flex;
flex-direction: column;
height: -webkit-fill-available;
height: 100%;
box-sizing: border-box;
}
.k-chat-body {
overflow-x: visible;
overflow-y: auto;
height: 100%;
}
.k-chat-footer {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-chat/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function apply(ctx: Context, options: Config = {}) {
ctx.self('sandbox')
.command('clear', '清空消息列表')
.action(({ session }) => {
this.handles[session.channelId].send('sandbox:clear')
ctx.webui.handles[session.channelId].send('sandbox:clear')
})

ctx.on('chat/receive', async (message) => {
Expand Down

0 comments on commit 92873e2

Please sign in to comment.