diff options
| author | Monika <monika_hedman@brown.edu> | 2019-06-21 11:37:28 -0400 |
|---|---|---|
| committer | Monika <monika_hedman@brown.edu> | 2019-06-21 11:37:28 -0400 |
| commit | 7eb3e346c6fddc23794f3dd0c33e280c4ee7bc24 (patch) | |
| tree | d6e9ecd9d02aabd5324586c027ec769b750e0b6e /src/client/views/Templates.tsx | |
| parent | 4b8a6b7a76ccadfd39ec037e282018c7d588dea8 (diff) | |
| parent | 179afa6e80631fcb8899408c3961bf1757e5b19b (diff) | |
pulled from master
Diffstat (limited to 'src/client/views/Templates.tsx')
| -rw-r--r-- | src/client/views/Templates.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/Templates.tsx b/src/client/views/Templates.tsx index 3cd525afa..3d5f7b6ea 100644 --- a/src/client/views/Templates.tsx +++ b/src/client/views/Templates.tsx @@ -48,12 +48,12 @@ export namespace Templates { </div>` ); export const Title = new Template("Title", TemplatePosition.InnerTop, - `<div style="height:100%"> + `<div> <div style="height:25px; width:100%; background-color: rgba(0, 0, 0, .4); color: white; "> <span style="text-align:center;width:100%;font-size:20px;position:absolute;overflow:hidden;white-space:nowrap;text-overflow:ellipsis">{props.Document.title}</span> </div> - <div style="display:flex; flex-direction:column; height:calc(100% - 25px);"> - <div style="height:min-content; width:100%;overflow:auto">{layout}</div> + <div style="height:calc(100% - 25px);"> + <div style="width:100%;overflow:auto">{layout}</div> </div> </div>` ); @@ -62,7 +62,7 @@ export namespace Templates { <div style="width:100%; background-color: rgba(0, 0, 0, .4); color: white; "> <FormattedTextBox {...props} height={"min-content"} color={"white"} fieldKey={"header"} /> </div> - <div style="width:100%;height:min-content;overflow:auto;">{layout}</div> + <div style="width:100%;height:100%;overflow:auto;">{layout}</div> </div > ` ); export const Bullet = new Template("Bullet", TemplatePosition.InnerTop, |
