mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-04 00:56:40 +08:00
commit
921f8d6734
@ -323,7 +323,7 @@
|
||||
}
|
||||
|
||||
.sidebar-action:not(:last-child) {
|
||||
margin-right: 15px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.loading-content {
|
||||
@ -340,12 +340,12 @@
|
||||
}
|
||||
|
||||
.custom-sidebar-clear-button {
|
||||
background-color: transparent !important;
|
||||
//background-color: rgb(255 255 255);
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
height: 20px;
|
||||
margin-top: 15px;
|
||||
//border-radius: 0;
|
||||
//padding: 0;
|
||||
//height: 20px;
|
||||
//margin-top: 15px;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ import SettingsIcon from "../icons/settings.svg";
|
||||
import ChatGptIcon from "../icons/chatgpt.svg";
|
||||
import AddIcon from "../icons/add.svg";
|
||||
import CloseIcon from "../icons/close.svg";
|
||||
import DeleteIcon from "../icons/delete.svg";
|
||||
import DeleteIcon from "../icons/clear.svg";
|
||||
import MaskIcon from "../icons/mask.svg";
|
||||
import CoffeeIcon from "../icons/coffee.svg";
|
||||
import DragIcon from "../icons/drag.svg";
|
||||
@ -230,16 +230,20 @@ export function SideBar(props: { className?: string }) {
|
||||
<IconButton icon={<SettingsIcon />} shadow />
|
||||
</Link>
|
||||
</div>
|
||||
<IconButton
|
||||
text={Locale.Settings.Danger.Clear.Title}
|
||||
onClick={async () => {
|
||||
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
||||
chatStore.clearAllData();
|
||||
}
|
||||
}}
|
||||
type="danger"
|
||||
className={styles["custom-sidebar-clear-button"]}
|
||||
/>
|
||||
<div className={styles["sidebar-action"]}>
|
||||
<IconButton
|
||||
// text={Locale.Settings.Danger.Clear.Title}
|
||||
onClick={async () => {
|
||||
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
||||
chatStore.clearAllData();
|
||||
}
|
||||
}}
|
||||
title={Locale.Settings.Danger.Clear.Title}
|
||||
icon={<DeleteIcon />}
|
||||
// type="danger"
|
||||
className={styles["custom-sidebar-clear-button"]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<IconButton
|
||||
|
@ -150,7 +150,8 @@ export const usePromptStore = createPersistStore(
|
||||
},
|
||||
|
||||
onRehydrateStorage(state) {
|
||||
const PROMPT_URL = "https://cos.xiaosi.cc/next/public/prompts.json";
|
||||
// const PROMPT_URL = "https://cos.xiaosi.cc/next/public/prompts.json";
|
||||
const PROMPT_URL = "./prompts.json";
|
||||
|
||||
type PromptList = Array<[string, string]>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user