diff --git a/src/components/layouts/FullPage.tsx b/src/components/layouts/FullPage.tsx index 3334f604..8244076b 100644 --- a/src/components/layouts/FullPage.tsx +++ b/src/components/layouts/FullPage.tsx @@ -21,8 +21,6 @@ const FullPageLayout: React.FC = ({ loading = false, poweredBy, }) => { - const isChrome = navigator.userAgent.includes('Chrome'); - return ( <> {integrationStyle} @@ -38,7 +36,7 @@ const FullPageLayout: React.FC = ({
-
+
{Avatar && avatarProps && }
@@ -51,7 +49,7 @@ const FullPageLayout: React.FC = ({ ) : null}
-
{poweredBy}
+
{poweredBy}
diff --git a/src/components/layouts/ZoomedFullBody.tsx b/src/components/layouts/ZoomedFullBody.tsx index 6865264f..55e20079 100644 --- a/src/components/layouts/ZoomedFullBody.tsx +++ b/src/components/layouts/ZoomedFullBody.tsx @@ -31,7 +31,7 @@ const ZoomedFullBodyLayout: React.FC = ({ {integrationStyle} {integrationBackground} - + {showInstruct && ChangeMode && changeModeProps && ( )} @@ -41,7 +41,7 @@ const ZoomedFullBodyLayout: React.FC = ({
-
+
{Avatar && avatarProps && ( )} diff --git a/src/components/layouts/__snapshots__/FullPage.test.tsx.snap b/src/components/layouts/__snapshots__/FullPage.test.tsx.snap index 89c99633..6855d943 100644 --- a/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +++ b/src/components/layouts/__snapshots__/FullPage.test.tsx.snap @@ -36,7 +36,7 @@ exports[`renders FullPage layout unchanged 1`] = ` />
div { + .memori-full-body-layout--avatar-column .memori--avatar-wrapper > div { overflow: visible !important; width: auto !important; height: 80vh !important; @@ -45,7 +45,7 @@ will-change: transform; } - .memori-full-body-layout--avatar-mobile .memori--avatar-wrapper canvas { + .memori-full-body-layout--avatar-column .memori--avatar-wrapper canvas { width: auto !important; max-width: 100%; height: 100% !important; @@ -53,15 +53,15 @@ touch-action: none; } - .memori-full-body-layout--avatar-mobile .memori--avatar-wrapper > div canvas + div, - .memori-full-body-layout--avatar-mobile .memori--avatar-wrapper .avatar-loader { + .memori-full-body-layout--avatar-column .memori--avatar-wrapper > div canvas + div, + .memori-full-body-layout--avatar-column .memori--avatar-wrapper .avatar-loader { position: absolute !important; width: 100%; height: 100%; transform: none !important; } - .memori-full-body-layout--avatar-mobile .memori--avatar-wrapper .avatar-loader { + .memori-full-body-layout--avatar-column .memori--avatar-wrapper .avatar-loader { display: flex; align-items: center; justify-content: center; diff --git a/src/components/layouts/zoomed-full-body.css b/src/components/layouts/zoomed-full-body.css index 3baec5b4..23d088ec 100644 --- a/src/components/layouts/zoomed-full-body.css +++ b/src/components/layouts/zoomed-full-body.css @@ -6,7 +6,7 @@ touch-action: manipulation; } -.memori--powered-by-custom { +.memori--powered-by-container { position: absolute; z-index: 1000; bottom: 50px; diff --git a/src/components/ui/Spin.css b/src/components/ui/Spin.css index ba55980e..7ffc8a5f 100644 --- a/src/components/ui/Spin.css +++ b/src/components/ui/Spin.css @@ -33,19 +33,8 @@ @media (max-width: 870px) { - .memori-spin--spinning { - top: 60% !important; - left: 110%; - font-size: 1rem; - } - - .memori-spin--spinner { - margin: auto; - background: transparent ; - } - - .memori-spin--spinner svg { - width: 20%; - height: 20%; + .memori-spin--spinner svg { + max-width: 3rem; + max-height: 3rem; } } \ No newline at end of file diff --git a/src/styles.css b/src/styles.css index 2b4d83a1..58a507fb 100644 --- a/src/styles.css +++ b/src/styles.css @@ -55,8 +55,9 @@ @import url('./components/layouts/chat.css'); @import url('./components/layouts/zoomed-full-body.css'); -/* Default layout style */ +/* General layout styles */ @import url('./components/layouts/layouts.css'); + @import url('https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/katex.min.css'); .sr-only {