forked from XiaoMo/ChatGPT-Next-Web
fix: layout styles
This commit is contained in:
parent
1fae774bb2
commit
7a1bcac8bf
@ -9,6 +9,8 @@
|
|||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
min-width: 600px;
|
min-width: 600px;
|
||||||
min-height: 480px;
|
min-height: 480px;
|
||||||
|
max-width: 900px;
|
||||||
|
max-height: 720px;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -29,6 +31,9 @@
|
|||||||
|
|
||||||
@include container();
|
@include container();
|
||||||
|
|
||||||
|
max-width: 100vw;
|
||||||
|
max-height: 100vh;
|
||||||
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,8 +58,10 @@
|
|||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
@media only screen and (max-width: 600px) {
|
||||||
.container {
|
.container {
|
||||||
min-width: unset;
|
|
||||||
min-height: unset;
|
min-height: unset;
|
||||||
|
min-width: unset;
|
||||||
|
max-height: unset;
|
||||||
|
min-width: unset;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
@ -258,13 +258,14 @@ export const useChatStore = create<ChatStore>()(
|
|||||||
|
|
||||||
if (session.topic === DEFAULT_TOPIC) {
|
if (session.topic === DEFAULT_TOPIC) {
|
||||||
// should summarize topic
|
// should summarize topic
|
||||||
requestWithPrompt(session.messages, "返回这句话的简要主题").then(
|
requestWithPrompt(
|
||||||
(res) => {
|
session.messages,
|
||||||
|
"直接返回这句话的简要主题,不要解释"
|
||||||
|
).then((res) => {
|
||||||
get().updateCurrentSession(
|
get().updateCurrentSession(
|
||||||
(session) => (session.topic = trimTopic(res))
|
(session) => (session.topic = trimTopic(res))
|
||||||
);
|
);
|
||||||
}
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user