|
|
@ -795,6 +795,19 @@ export function Chat() {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={styles.chat} key={session.id}>
|
|
|
|
<div className={styles.chat} key={session.id}>
|
|
|
|
<div className="window-header" data-tauri-drag-region>
|
|
|
|
<div className="window-header" data-tauri-drag-region>
|
|
|
|
|
|
|
|
{isMobileScreen && (
|
|
|
|
|
|
|
|
<div className="window-actions">
|
|
|
|
|
|
|
|
<div className={"window-action-button"}>
|
|
|
|
|
|
|
|
<IconButton
|
|
|
|
|
|
|
|
icon={<ReturnIcon />}
|
|
|
|
|
|
|
|
bordered
|
|
|
|
|
|
|
|
title={Locale.Chat.Actions.ChatList}
|
|
|
|
|
|
|
|
onClick={() => navigate(Path.Home)}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
<div className="window-header-title">
|
|
|
|
<div className="window-header-title">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
className={`window-header-main-title " ${styles["chat-body-title"]}`}
|
|
|
|
className={`window-header-main-title " ${styles["chat-body-title"]}`}
|
|
|
@ -807,21 +820,15 @@ export function Chat() {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="window-actions">
|
|
|
|
<div className="window-actions">
|
|
|
|
<div className={"window-action-button" + " " + styles.mobile}>
|
|
|
|
{!isMobileScreen && (
|
|
|
|
<IconButton
|
|
|
|
<div className="window-action-button">
|
|
|
|
icon={<ReturnIcon />}
|
|
|
|
<IconButton
|
|
|
|
bordered
|
|
|
|
icon={<RenameIcon />}
|
|
|
|
title={Locale.Chat.Actions.ChatList}
|
|
|
|
bordered
|
|
|
|
onClick={() => navigate(Path.Home)}
|
|
|
|
onClick={renameSession}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="window-action-button">
|
|
|
|
)}
|
|
|
|
<IconButton
|
|
|
|
|
|
|
|
icon={<RenameIcon />}
|
|
|
|
|
|
|
|
bordered
|
|
|
|
|
|
|
|
onClick={renameSession}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="window-action-button">
|
|
|
|
<div className="window-action-button">
|
|
|
|
<IconButton
|
|
|
|
<IconButton
|
|
|
|
icon={<ExportIcon />}
|
|
|
|
icon={<ExportIcon />}
|
|
|
|