dmartincy commited on
Commit
231b1ef
·
1 Parent(s): d4f99c0

Occupy the entire viewport

Browse files
Files changed (2) hide show
  1. document-authoring.js +14 -12
  2. index.html +14 -2
document-authoring.js CHANGED
@@ -1,19 +1,21 @@
1
  // Initialize the app container.
2
  const app = document.getElementById('app');
3
  app.innerHTML = `
4
- <div style="max-width: 1024px; margin: 0 auto; padding: 20px;">
5
- <div id="statusIndicator">
6
- <span class="spinner"></span> Services starting...
 
 
 
 
 
 
 
 
 
 
7
  </div>
8
- <div id="translationControls">
9
- <select id="languageSelect">
10
- <option value="Spanish">Spanish</option>
11
- <option value="French">French</option>
12
- <option value="German">German</option>
13
- </select>
14
- <button id="translateButton">Translate Document</button>
15
- </div>
16
- <div id="editor" style="border: 1px solid black; height: 600px; position: relative"></div>
17
  </div>
18
  `;
19
 
 
1
  // Initialize the app container.
2
  const app = document.getElementById('app');
3
  app.innerHTML = `
4
+ <div style="height: 100vh; display: flex; flex-direction: column;">
5
+ <div style="padding: 20px;">
6
+ <div id="statusIndicator">
7
+ <span class="spinner"></span> Services starting...
8
+ </div>
9
+ <div id="translationControls">
10
+ <select id="languageSelect">
11
+ <option value="Spanish">Spanish</option>
12
+ <option value="French">French</option>
13
+ <option value="German">German</option>
14
+ </select>
15
+ <button id="translateButton">Translate Document</button>
16
+ </div>
17
  </div>
18
+ <div id="editor" style="flex: 1; border: 1px solid black; min-height: 0;"></div>
 
 
 
 
 
 
 
 
19
  </div>
20
  `;
21
 
index.html CHANGED
@@ -6,6 +6,18 @@
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <title>Document Authoring SDK</title>
8
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
9
  .spinner {
10
  display: inline-block;
11
  width: 16px;
@@ -39,9 +51,9 @@
39
 
40
  #statusIndicator {
41
  text-align: center;
42
- padding: 20px;
43
  background: #f0f0f0;
44
- margin-bottom: 20px;
45
  border-radius: 4px;
46
  font-size: 16px;
47
  }
 
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <title>Document Authoring SDK</title>
8
  <style>
9
+ /* Reset default margins and padding */
10
+ html, body {
11
+ margin: 0;
12
+ padding: 0;
13
+ height: 100%;
14
+ overflow: hidden;
15
+ }
16
+
17
+ #app {
18
+ height: 100%;
19
+ }
20
+
21
  .spinner {
22
  display: inline-block;
23
  width: 16px;
 
51
 
52
  #statusIndicator {
53
  text-align: center;
54
+ padding: 10px;
55
  background: #f0f0f0;
56
+ margin-bottom: 10px;
57
  border-radius: 4px;
58
  font-size: 16px;
59
  }