Skip to content

Commit

Permalink
chore: 细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Sep 15, 2023
1 parent a4568e4 commit 4e78b05
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions cloudflare/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default {
// headers.set('x-ws-endpoint', SITE_HOST || uri.host)
uri.host = TARGET_HOST
uri.port = TARGET_HOST.split(':')[1] || ''
headers.set('cookie', `IMAGE_ONLY=1; ${headers.get('cookie') || ''}`)
}
headers.set('Host', uri.host)
return fetch(uri.toString(), {
Expand Down
2 changes: 1 addition & 1 deletion src/app/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ button {
}

.chat-history {
max-width: var(--side-panel-width);
width: var(--side-panel-width);
animation-name: message-enter;
animation-fill-mode: both;
animation-duration: 633ms;
Expand Down
1 change: 0 additions & 1 deletion src/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export function Settings() {
<div className="flex gap-2">
<Switch
checked={enabledHistory}
disabled={imageOnly}
className={`${enabledHistory ? 'bg-blue-600' : 'bg-gray-200'} relative inline-flex h-6 w-11 items-center rounded-full`}
onChange={(checked: boolean) => setHistory(checked)}
>
Expand Down

0 comments on commit 4e78b05

Please sign in to comment.