aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-12-11 21:08:01 -0500
committerbobzel <zzzman@gmail.com>2020-12-11 21:08:01 -0500
commit00d859f5c334fa105e3f6d572b74cb04fa9dd026 (patch)
tree54968cb294809dadcdc3ad8b47f4ebcc9f442bd0 /src/client/views/collections
parentf923f3a3954b9e25a94970bc161cca8ec9800cef (diff)
more documentViewProps cleanup. fixed embedding documents into treeView / slide bullet items.
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/TreeView.scss11
-rw-r--r--src/client/views/collections/TreeView.tsx1
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx4
3 files changed, 12 insertions, 4 deletions
diff --git a/src/client/views/collections/TreeView.scss b/src/client/views/collections/TreeView.scss
index 796b2438e..cc6267f45 100644
--- a/src/client/views/collections/TreeView.scss
+++ b/src/client/views/collections/TreeView.scss
@@ -65,7 +65,16 @@
cursor: pointer;
}
-.treeView-border-outline,
+.treeView-borderoutline {
+ ul {
+ .contentFittingDocumentView {
+ width: unset;
+ height: unset;
+ }
+ }
+}
+
+.treeView-borderoutline,
.treeView-border {
display: flex;
overflow: hidden;
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index a69e44515..5982934ff 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -505,7 +505,6 @@ export class TreeView extends React.Component<TreeViewProps> {
case StyleProp.DocContents: return !props?.treeViewDoc ? (null) :
<div className="treeView-label" style={{ // just render a title for a tree view label (identified by treeViewDoc being set in 'props')
maxWidth: props?.PanelWidth() || undefined,
- position: props?.relative ? "relative" : undefined,
background: props?.styleProvider?.(doc, props, StyleProp.BackgroundColor),
}}>
{StrCast(doc?.title)}
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 7ab297504..b8576681d 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -48,6 +48,7 @@ import { MarqueeView } from "./MarqueeView";
import React = require("react");
import { CurrentUserUtils } from "../../../util/CurrentUserUtils";
import { StyleProp, StyleLayers } from "../../StyleProvider";
+import { DocumentDecorations } from "../../DocumentDecorations";
export const panZoomSchema = createSchema({
_panX: "number",
@@ -1003,7 +1004,6 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P
ContainingCollectionDoc: this.props.Document,
LayoutTemplate: childLayout.z ? undefined : this.props.childLayoutTemplate,
LayoutTemplateString: childLayout.z ? undefined : this.props.childLayoutString,
- setupDragLines: this.setupDragLines,
rootSelected: childData ? this.rootSelected : returnFalse,
onClick: this.onChildClickHandler,
onDoubleClick: this.onChildDoubleClickHandler,
@@ -1382,7 +1382,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P
}
onPointerOver = (e: React.PointerEvent) => {
- SnappingManager.GetIsDragging() && this.setupDragLines(e.ctrlKey || e.shiftKey);
+ (DocumentDecorations.Instance.Interacting || SnappingManager.GetIsDragging()) && this.setupDragLines(e.ctrlKey || e.shiftKey);
e.stopPropagation();
}