aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-05-02 20:16:52 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-05-02 20:16:52 -0400
commit021e8cbe9892d0a9e277026b933ac634a7a9eba5 (patch)
tree3015de1133b2c5ad99718ba6a1ed27aa72552a9e /src
parentac9b42dba420139c0a7fad5685425b3cf9c1570e (diff)
summary template that doesn't update after reloading
Diffstat (limited to 'src')
-rw-r--r--src/client/views/Templates.tsx25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/client/views/Templates.tsx b/src/client/views/Templates.tsx
index 668ae5312..5858ee014 100644
--- a/src/client/views/Templates.tsx
+++ b/src/client/views/Templates.tsx
@@ -54,18 +54,21 @@ export namespace Templates {
`<div><div style="height:100%; width:100%;position:absolute;">{layout}</div><div style="height:25px; width:100%; position:absolute; top: 0; background-color: rgba(0, 0, 0, .4); color: white; padding:2px 10px">{props.Document.title}</div></div>`
);
export const Summary = new Template("Title", TemplatePosition.InnerTop,
- `<div style="height:100%; width:100%;position:absolute; margin:0; padding: 0">
- <div style="height:60%; width:100%;position:absolute;background:yellow; padding:0; margin:0">
- {layout}
- </div>
- <div style="bottom:0px; height:40%; width:50%; position:absolute; background-color: rgba(0, 0, 0, .4); color: white;">
- <FieldView {...props} fieldKey={"doc1"} />
- </div>
- <div style="bottom:0; left: 50%; height:40%; width:50%; position:absolute; background-color: rgba(0, 0, 0, .4); color: white;">
- <FieldView {...props} fieldKey={"doc2"} />
- </div>
- </div>`
+ `<div><div style="height:100%; width:100%;position:absolute;">{layout}</div><div style="height:25px; width:100%; position:absolute; top: 0; background-color: rgba(0, 0, 0, .4); color: white; padding:2px 10px">{props.Document.doc1.title}</div></div>`
);
+ // export const Summary = new Template("Title", TemplatePosition.InnerTop,
+ // `<div style="height:100%; width:100%;position:absolute; margin:0; padding: 0">
+ // <div style="height:60%; width:100%;position:absolute;background:yellow; padding:0; margin:0">
+ // {layout}
+ // </div>
+ // <div style="bottom:0px; height:40%; width:50%; position:absolute; background-color: rgba(0, 0, 0, .4); color: white;">
+ // <FieldView {...props} fieldKey={"doc1"} />
+ // </div>
+ // <div style="bottom:0; left: 50%; height:40%; width:50%; position:absolute; background-color: rgba(0, 0, 0, .4); color: white;">
+ // <FieldView {...props} fieldKey={"doc2"} />
+ // </div>
+ // </div>`
+ // );
export const TemplateList: Template[] = [Title, OuterCaption, InnerCaption, SideCaption];