diff --git a/libs/components/board-draw/src/components/zoom-bar/ZoomBar.tsx b/libs/components/board-draw/src/components/zoom-bar/ZoomBar.tsx
index 97a82f3825..9a1693031d 100644
--- a/libs/components/board-draw/src/components/zoom-bar/ZoomBar.tsx
+++ b/libs/components/board-draw/src/components/zoom-bar/ZoomBar.tsx
@@ -21,9 +21,7 @@ export const ZoomBar: FC = () => {
const zoom = app.useStore(zoomSelector);
return (
-
+
@@ -52,10 +50,18 @@ export const ZoomBar: FC = () => {
-
+
);
};
+const ZoomBarContainer = styled('div')({
+ position: 'absolute',
+ right: 10,
+ bottom: 10,
+ zIndex: 200,
+ userSelect: 'none',
+});
+
const MiniMapContainer = styled('div')({
display: 'flex',
justifyContent: 'flex-end',
diff --git a/libs/components/board-shapes/src/editor-util/EditorUtil.tsx b/libs/components/board-shapes/src/editor-util/EditorUtil.tsx
index 430a3069f2..a7c56ebce1 100644
--- a/libs/components/board-shapes/src/editor-util/EditorUtil.tsx
+++ b/libs/components/board-shapes/src/editor-util/EditorUtil.tsx
@@ -133,6 +133,7 @@ export class EditorUtil extends TDShapeUtil {
{
const PADDING = 16;
// const MIN_CONTAINER_HEIGHT = 200;
-const Container = styled('div')({
+const Container = styled('div')<{ editing: boolean }>(({ editing }) => ({
pointerEvents: 'all',
position: 'relative',
width: '100%',
-});
+ userSelect: editing ? 'unset' : 'none',
+}));
const Mask = styled('div')({
position: 'absolute',
- userSelect: 'none',
top: 0,
left: 0,
bottom: 0,