From c3e7c5c1d4f85cd291140f06dca57107ed7db22f Mon Sep 17 00:00:00 2001 From: nadirdeveloper Date: Mon, 7 Nov 2022 22:36:45 +0500 Subject: [PATCH] fixed action button style issue --- src/components/GlassArView/index.css | 9 +++- src/components/GlassArView/index.tsx | 72 ++++++++++++++-------------- 2 files changed, 45 insertions(+), 36 deletions(-) diff --git a/src/components/GlassArView/index.css b/src/components/GlassArView/index.css index 1828224..33aa108 100644 --- a/src/components/GlassArView/index.css +++ b/src/components/GlassArView/index.css @@ -84,10 +84,17 @@ .JeelizVTOWidgetControls { /* position: absolute; */ z-index: 2; - width: 100%; + /* width: 100%; */ + margin-left: 10px; } .JeelizVTOWidgetButtonContainer { display: flex; + width: 100%; + justify-content: center; + align-items: center; + } + .JeelizVTOWidgetContainer { + width: 1000px; } .buttonIcon { display: inline-block; diff --git a/src/components/GlassArView/index.tsx b/src/components/GlassArView/index.tsx index 5e978f5..524bc1d 100644 --- a/src/components/GlassArView/index.tsx +++ b/src/components/GlassArView/index.tsx @@ -114,45 +114,47 @@ export function GlassArView(this: any, props: GlassArViewProps) { } = props; return ( -
- -
- { - adjustMode && ( -
-
- Move the glasses to adjust them. +
+
+ +
+ { + adjustMode && ( +
+
+ Move the glasses to adjust them. +
+
+ + Quit + +
-
- - Quit - -
-
- ) - } - { - !adjustMode && ( - <> -
- - Adjust - -
-
- Model -
- - ) - } -
+ ) + } + { + !adjustMode && ( + <> +
+ + Adjust + +
+
+ Model +
+ + ) + } +
-
-
- LOADING... +
+
+ LOADING... +
-
+
) }