summaryrefslogtreecommitdiff
path: root/editor/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'editor/index.html')
-rwxr-xr-xeditor/index.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/editor/index.html b/editor/index.html
index da0d39d..226c87a 100755
--- a/editor/index.html
+++ b/editor/index.html
@@ -21,11 +21,15 @@
<title>Chimrod &ndash; Editor</title>
<style>
+
+ main {
+ overflow: hidden;
+ }
+
#text-container {
- height: 350px;
}
- .ProseMirror { height: 330px; overflow-y: auto; box-sizing: border-box; -moz-box-sizing: border-box }
- textarea { width: 100%; height: 400px; border: 1px solid silver; box-sizing: border-box; padding: 3px 10px; border: none; outline: none }
+ .ProseMirror { height: calc(100vh - 13ex); overflow-y: auto; box-sizing: border-box; -moz-box-sizing: border-box }
+ textarea { width: 100%; border: 1px solid silver; box-sizing: border-box; padding: 3px 10px; border: none; outline: none }
</style>
</head>
<body class="light-theme">
@@ -59,7 +63,7 @@
<input type="text" id="title" value="Titre" />
</header>
<div>
- <div id="text_editor" class="editor" style="margin-bottom: 23px; height: 350px;"></div>
+ <div id="text_editor" class="editor" style="margin-bottom: 23px; /*height: 350px;*/"></div>
<div style="display: none" id="content">
<h3>Hello ProseMirror</h3>