diff options
| author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-07-22 18:07:45 -0500 |
|---|---|---|
| committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-07-22 18:07:45 -0500 |
| commit | 66bcfb6364ca5d8b4a0fd26139966ea9d6c12f87 (patch) | |
| tree | 1ebe5791f5b5d534353f94d207b44b657ccc5965 /src/client/views/collections | |
| parent | a99cef9945c1c4f9e5ff07663fc6db5cda2dcd50 (diff) | |
adding buttons
Diffstat (limited to 'src/client/views/collections')
3 files changed, 20 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index eec68f9fc..853321d3c 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -50,6 +50,7 @@ import './CollectionView.scss'; import CollectionMenu from './CollectionMenu'; import { SharingPermissions } from '../../util/SharingManager'; import { PropertiesView } from './collectionFreeForm/PropertiesView'; +import { DocumentView } from '../nodes/DocumentView'; const higflyout = require("@hig/flyout"); export const { anchorPoints } = higflyout; export const Flyout = higflyout.default; @@ -589,6 +590,7 @@ export class CollectionView extends Touchable<FieldViewProps & CollectionViewCus overflow: this.propertiesWidth() < 15 ? "hidden" : undefined }}> <PropertiesView dataDoc={this.dataDoc} Document={this.props.Document} + docView={CollectionView as unknown as DocumentView} width={this._propertiesWidth} height={this.props.PanelHeight()} renderDepth={this.props.renderDepth} diff --git a/src/client/views/collections/collectionFreeForm/PropertiesView.scss b/src/client/views/collections/collectionFreeForm/PropertiesView.scss index e81b1eeb4..98eae1ac7 100644 --- a/src/client/views/collections/collectionFreeForm/PropertiesView.scss +++ b/src/client/views/collections/collectionFreeForm/PropertiesView.scss @@ -28,6 +28,18 @@ padding: 8.5px; font-size: 12.5px; font-weight: bold; + + .propertiesView-settings-title { + font-weight: bold; + font-size: 12.5px; + padding-bottom: 7px; + } + + .propertiesView-settings-content { + margin-left: 5px; + padding-bottom: 10px; + } + } .propertiesView-fields { diff --git a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx index 27b0dbd9e..5242aa8fd 100644 --- a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx +++ b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx @@ -13,6 +13,7 @@ import { ContentFittingDocumentView } from "../../nodes/ContentFittingDocumentVi import { returnFalse, returnOne, emptyFunction, emptyPath, returnTrue, returnZero, returnEmptyFilter, Utils } from "../../../../Utils"; import { Id } from "../../../../fields/FieldSymbols"; import { Transform } from "../../../util/Transform"; +import { PropertiesButtons } from "../../PropertiesButtons"; interface PropertiesViewProps { @@ -22,7 +23,7 @@ interface PropertiesViewProps { height: number; renderDepth: number; ScreenToLocalTransform: () => Transform; - //docView: DocumentView; + docView: DocumentView; } @observer @@ -125,7 +126,10 @@ export class PropertiesView extends React.Component<PropertiesViewProps> { Collection </div> <div className="propertiesView-settings"> - Settings + <div className="propertiesView-settings-title"> Settings</div> + <div className="propertiesView-settings-content"> + <PropertiesButtons doc={this.props.Document} /> + </div> </div> <div className="propertiesView-fields"> <div className="propertiesView-fields-title"> Fields</div> |
