Skip to content

Commit

Permalink
fix: removed style that was cropping the half body avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepat0 committed Nov 7, 2024
1 parent 05c0c4e commit fed9a55
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
12 changes: 7 additions & 5 deletions src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import Edit from '../icons/Edit';
import cx from 'classnames';
import ContainerAvatarView from './AvatarView';
import { useViseme } from '../../context/visemeContext';
import PositionControls from './AvatarView/AvatarComponent/positionControls/positionControls';
import { getLocalConfig } from '../../helpers/configuration';

export interface Props {
memori: Memori;
Expand All @@ -35,7 +37,7 @@ export interface Props {
isZoomed?: boolean;
chatProps?: any;
enablePositionControls?: boolean;
setEnablePositionControls?: (value: boolean) => void;
setEnablePositionControls: (value: boolean) => void;
avatarType?: 'blob' | 'avatar3d' | undefined;
}

Expand Down Expand Up @@ -138,6 +140,7 @@ const Avatar: React.FC<Props> = ({
}
>
<ContainerAvatarView
enablePositionControls={enablePositionControls}
updateCurrentViseme={updateCurrentViseme}
url={integrationConfig.avatarURL}
sex={memori.voiceType === 'FEMALE' ? 'FEMALE' : 'MALE'}
Expand All @@ -153,7 +156,6 @@ const Avatar: React.FC<Props> = ({
resetVisemeQueue={resetVisemeQueue}
isZoomed={isZoomed}
chatEmission={chatProps?.dialogState?.emission}
enablePositionControls={enablePositionControls}
setEnablePositionControls={setEnablePositionControls}
/>
</ErrorBoundary>
Expand Down Expand Up @@ -191,10 +193,10 @@ const Avatar: React.FC<Props> = ({
const getAvatarStyle = () => {
if (integrationConfig?.avatar === 'readyplayerme') {
return {
width: '300px',
height: '300px',
width: '100%',
height: '100%',
backgroundColor: 'none',
borderRadius: '100%',
// borderRadius: '100%',
boxShadow: 'none',
};
}
Expand Down
16 changes: 8 additions & 8 deletions src/components/layouts/totem.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,28 +95,28 @@
bottom: auto;
}

.memori-totem-layout--avatar .memori--avatar-wrapper>div {
overflow: visible !important;
/* .memori-totem-layout--avatar .memori--avatar-wrapper>div {
overflow: visible !important; */
/* width: 100% !important;
height: 100% !important; */
width: auto !important;
/* width: auto !important;
height: 90vh !important;
max-height: 90vh;
border-radius: 0;
transform: scale(1.7) translate(0px, 10vh);
}
} */

.memori-totem-layout--avatar .memori--avatar-wrapper canvas {
/* .memori-totem-layout--avatar .memori--avatar-wrapper canvas {
width: auto !important;
max-width: 100%;
height: 100% !important;
max-height: 100%;
}
} */

.memori-totem-layout--controls {
/* .memori-totem-layout--controls {
position: relative;
z-index: 5;
}
} */

.memori-totem-layout--controls .memori--start-panel,
.memori-totem-layout--controls .memori-chat--history,
Expand Down

0 comments on commit fed9a55

Please sign in to comment.