diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-04-27 00:05:22 -0700 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-04-27 00:05:22 -0700 |
commit | 0d14c63fbdc377eca4516da584c86468865b2bbf (patch) | |
tree | b81d778fdc2a82082c0e7985f6f4203506b89592 | |
parent | 56fff4d308d1a8800b6bb583f7447b3dc940ee8e (diff) | |
parent | 920a9ca6dd1d224b31c80be274d76bc0dcbc332e (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
-rw-r--r-- | src/server/authentication/models/current_user_utils.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts index d0bf48c9e..627f3b324 100644 --- a/src/server/authentication/models/current_user_utils.ts +++ b/src/server/authentication/models/current_user_utils.ts @@ -83,22 +83,22 @@ export class CurrentUserUtils { } if (doc["template-button-detail"] === undefined) { - const { TextDocument, ImageDocument, CarouselDocument, TreeDocument } = Docs.Create; + const { TextDocument, ImageDocument, MasonryDocument, StackingDocument, CarouselDocument, TreeDocument } = Docs.Create; const detailedTemplate = `{ "doc": { "type": "doc", "content": [ { "type": "paragraph", "content": [ { "type": "dashField", "attrs": { "fieldKey": "year" } } ] }, { "type": "paragraph", "content": [ { "type": "dashField", "attrs": { "fieldKey": "company" } } ] } ] }, "selection":{"type":"text","anchor":1,"head":1},"storedMarks":[] }`; const textDoc1 = TextDocument("", { title: "shortDescription", treeViewOpen: true, treeViewExpandedView: "layout", _height: 50 }); const textDoc2 = TextDocument("", { title: "longDescription", treeViewOpen: false, treeViewExpandedView: "layout", _height: 350 }); const detailView = Docs.Create.StackingDocument([ CarouselDocument([], { title: "data", _height: 350, _itemIndex: 0, backgroundColor: "#9b9b9b3F" }), - TreeDocument([ + MasonryDocument([ textDoc1, textDoc2, // TreeDocument([], { title: "narratives", _height: 75, treeViewHideTitle: true }), - ], { title: "stuff", _height: 300, treeViewHideTitle: true }) - ], { _chromeStatus: "disabled", _width: 300, _height: 600, title: "detailView" }); - //textDoc.data = new RichTextField(detailedTemplate, "year company"); + ], { title: "stuff", _height: 300, _xMargin: 0, _autoHeight: true, columnWidth: -1, _chromeStatus: "disabled", treeViewHideTitle: true, _pivotField: "title" }) + ], { _chromeStatus: "disabled", _width: 300, _autoHeight: true, _xMargin: 0, _fontFamily: "Comic Sans MS", _fontSize: 12, title: "detailView" }); + textDoc1.text = new RichTextField(detailedTemplate, "year company"); detailView.isTemplateDoc = makeTemplate(detailView); - textDoc1.title = "Short Description"; + textDoc1.title = "A Short Description"; textDoc2.title = "Long Description"; doc["template-button-detail"] = CurrentUserUtils.ficon({ |