Skip to content

Commit

Permalink
fix: 修复 Header Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Oct 19, 2024
1 parent 317d442 commit 357c450
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/app/chat/ViewerMode/ChatDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Dialog = (props: DialogProps) => {
<ChatItem
id={currentChats[lastAgentChatIndex].id}
index={lastAgentChatIndex}
showTitle={false}
showTitle={true}
type="pure"
/>
<Tooltip key="close" title={t('close', { ns: 'common' })}>
Expand Down
16 changes: 5 additions & 11 deletions src/layout/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Header = (props: Props) => {
<ActionIcon icon={X} onClick={() => setDrawerVisible(false)} />
</Flexbox>
}
placement="right"
placement="left"
onClose={() => setDrawerVisible(false)}
open={drawerVisible}
width={300}
Expand Down Expand Up @@ -159,16 +159,10 @@ const Header = (props: Props) => {
<LobeHeader
actions={[
<Flexbox key="actions" gap={8} direction="horizontal">
{mobile ? (
<Avatar key="avatar" />
) : (
<>
<Documentation key="doc" />
<Github key="github" />
<Support key="support" />
<Avatar key="avatar" />
</>
)}
<Documentation key="doc" />
<Github key="github" />
<Support key="support" />
<Avatar key="avatar" />
</Flexbox>,
]}
logo={
Expand Down
2 changes: 1 addition & 1 deletion src/libs/vrmViewer/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export class Viewer {

// 相机初始化
this._camera = new THREE.PerspectiveCamera(45, width / height, 0.1, 2000);
this._camera.position.set(0, 1.5, 2);
this._camera.position.set(0, 1.5, 2.5);

// camera 控制
this._cameraControls = new OrbitControls(this._camera, this._renderer.domElement);
Expand Down

0 comments on commit 357c450

Please sign in to comment.