aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-04-27 02:27:40 -0700
committerSam Wilkins <samwilkins333@gmail.com>2020-04-27 02:27:40 -0700
commit0dfe3d9f0790f499b380cbafcef40cfbe0c7ad29 (patch)
tree08d2e947ebd5b9f108a3bdcfebdbbe4b1148b599 /src
parent20feae7ca13ce3ecc1aa5bf2178a46f82aede467 (diff)
template tweaks
Diffstat (limited to 'src')
-rw-r--r--src/server/authentication/models/current_user_utils.ts21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts
index 5165549f8..b5a44a8bc 100644
--- a/src/server/authentication/models/current_user_utils.ts
+++ b/src/server/authentication/models/current_user_utils.ts
@@ -87,8 +87,9 @@ export class CurrentUserUtils {
const carousel = CarouselDocument([], { title: "data", _height: 350, _itemIndex: 0, backgroundColor: "#9b9b9b3F" });
- const short = TextDocument("", { title: "shortDescription", treeViewOpen: true, treeViewExpandedView: "layout", _height: 50 });
- const long = TextDocument("", { title: "longDescription", treeViewOpen: false, treeViewExpandedView: "layout", _height: 350 });
+ const details = TextDocument("", { title: "details", _height: 350, _autoHeight: true });
+ const short = TextDocument("", { title: "shortDescription", treeViewOpen: true, treeViewExpandedView: "layout", _height: 50, _autoHeight: true });
+ const long = TextDocument("", { title: "longDescription", treeViewOpen: false, treeViewExpandedView: "layout", _height: 350, _autoHeight: true });
const buxtonFieldKeys = ["year", "originalPrice", "degreesOfFreedom", "company", "attribute", "primaryKey", "secondaryKey", "dimensions"];
const detailedTemplate = {
@@ -100,25 +101,15 @@ export class CurrentUserUtils {
},
selection: { type: "text", anchor: 1, head: 1 },
storedMarks: []
- }; short.text = new RichTextField(JSON.stringify(detailedTemplate), buxtonFieldKeys.join(" "));
+ };
+ details.text = new RichTextField(JSON.stringify(detailedTemplate), buxtonFieldKeys.join(" "));
const shared = { _chromeStatus: "disabled", _autoHeight: true, _xMargin: 0 };
const detailViewOpts = { title: "detailView", _width: 300, _fontFamily: "Arial", _fontSize: 12 };
const descriptionWrapperOpts = { title: "descriptions", _height: 300, columnWidth: -1, treeViewHideTitle: true, _pivotField: "title" };
const descriptionWrapper = MasonryDocument([short, long], { ...shared, ...descriptionWrapperOpts });
- const detailView = Docs.Create.StackingDocument([carousel, descriptionWrapper], { ...shared, ...detailViewOpts });
- detailView.isTemplateDoc = makeTemplate(detailView);
- short.title = "A Short Description";
- long.title = "Long Description";
-
-
- const shared = { _chromeStatus: "disabled", _autoHeight: true, _xMargin: 0 };
- const detailViewOpts = { title: "detailView", _width: 300, _fontFamily: "Arial", _fontSize: 12 };
- const descriptionWrapperOpts = { title: "descriptions", _height: 300, columnWidth: -1, treeViewHideTitle: true, _pivotField: "title" };
-
- const descriptionWrapper = MasonryDocument([short, long], { ...shared, ...descriptionWrapperOpts });
- const detailView = Docs.Create.StackingDocument([carousel, descriptionWrapper], { ...shared, ...detailViewOpts });
+ const detailView = Docs.Create.StackingDocument([carousel, details, descriptionWrapper], { ...shared, ...detailViewOpts });
detailView.isTemplateDoc = makeTemplate(detailView);
short.title = "A Short Description";