Skip to content

Commit 05dd43c

Browse files
author
Jicheng Lu
committed
enlarge log section
1 parent 10f1ab8 commit 05dd43c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/lib/scss/custom/pages/_chat.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,11 @@
252252
}
253253

254254
.chat-with-log {
255-
flex: 0.7;
255+
flex: 0.6;
256256
}
257257

258258
.chat-log {
259-
flex: 0.3;
259+
flex: 0.4;
260260

261261
.padding-side {
262262
padding-left: 10px;

src/routes/VerticalLayout/Sidebar.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,6 @@
132132
};
133133
134134
const removeActiveDropdown = () => {
135-
document.querySelectorAll('.vertical-menu .mm-active').forEach((menu) => {
136-
menu.querySelectorAll('.active').forEach(child => child.classList.remove('active'));
137-
menu.classList.remove('mm-active');
138-
});
139-
140135
document.querySelectorAll('.vertical-menu .has-arrow').forEach((menu) => {
141136
if (menu.nextElementSibling) {
142137
menu.nextElementSibling.classList.add('mm-collapse');
@@ -151,6 +146,11 @@
151146
submenu.parentElement.classList.remove('mm-active');
152147
}
153148
});
149+
150+
document.querySelectorAll('.vertical-menu .mm-active').forEach((menu) => {
151+
menu.querySelectorAll('.active').forEach(child => child.classList.remove('active'));
152+
menu.classList.remove('mm-active');
153+
});
154154
};
155155
156156
const menuItemScroll=() => {

src/routes/chat/[agentId]/[conversationId]/chat-box.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
140140
/** @param {any} e */
141141
async function onSendMessage(e) {
142-
if ((e.key === 'Enter' && !!e.shiftKey) || e.key !== 'Enter') return;
142+
if ((e.key === 'Enter' && (!!e.shiftKey || !!e.ctrlKey)) || e.key !== 'Enter') return;
143143
await sendMessageToHub(params.agentId, params.conversationId, text);
144144
}
145145

0 commit comments

Comments
 (0)