From 82ffee28d91b746f81907e8888c5cc645df66054 Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sat, 16 Nov 2024 16:13:16 +0100 Subject: [PATCH] better align undo/redo buttons with the top buttons --- src/editor/components/components/Logo/Logo.component.jsx | 2 +- .../components/components/UndoRedo/UndoRedo.component.jsx | 2 ++ src/editor/components/scenegraph/Toolbar.js | 8 +++++--- .../components/viewport/CameraToolbar/CameraToolbar.scss | 6 +++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/editor/components/components/Logo/Logo.component.jsx b/src/editor/components/components/Logo/Logo.component.jsx index 5cfdad60..b4464404 100644 --- a/src/editor/components/components/Logo/Logo.component.jsx +++ b/src/editor/components/components/Logo/Logo.component.jsx @@ -9,7 +9,7 @@ import styles from './Logo.module.scss'; * @category Components */ const Logo = ({ onToggleEdit, isEditor }) => ( -
+
3DStreet Logo
diff --git a/src/editor/components/components/UndoRedo/UndoRedo.component.jsx b/src/editor/components/components/UndoRedo/UndoRedo.component.jsx index 8e5d01ac..2bf99e49 100644 --- a/src/editor/components/components/UndoRedo/UndoRedo.component.jsx +++ b/src/editor/components/components/UndoRedo/UndoRedo.component.jsx @@ -37,6 +37,7 @@ export const UndoRedo = () => { <> @@ -401,6 +402,7 @@ export default class Toolbar extends Component { Events.emit('openscreenshotmodal'); }} variant="toolbtn" + className="min-w-[105px]" >
Share
@@ -419,7 +421,7 @@ export default class Toolbar extends Component { )}
{isEditor && ( -
+
)} diff --git a/src/editor/components/viewport/CameraToolbar/CameraToolbar.scss b/src/editor/components/viewport/CameraToolbar/CameraToolbar.scss index 5de47c9c..084d9518 100644 --- a/src/editor/components/viewport/CameraToolbar/CameraToolbar.scss +++ b/src/editor/components/viewport/CameraToolbar/CameraToolbar.scss @@ -3,10 +3,10 @@ #cameraToolbar { align-items: center; display: flex; - column-gap: 12px; + column-gap: 0.5rem; background: rgba(55, 55, 55, 0.4); border-radius: 16px; - padding: 8px 12px; + padding: 6px 8px; transition: 0.2s ease-in-out; &:hover { background: rgba(55, 55, 55, 0.6); @@ -21,7 +21,7 @@ border-radius: 11px; transition: all 0.3s; font-size: 16px; - line-height: 19.2px; + line-height: 19px; font-weight: 400; &:hover { cursor: pointer;