Skip to content

Commit 5e73b03

Browse files
committed
Make the drag box fill the remaining height of window
1 parent 4c1a0d2 commit 5e73b03

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

default_app/index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@
1010
font-variant: normal;
1111
padding: 0;
1212
margin: 0;
13+
display: flex;
14+
flex-direction: column;
1315
}
1416

1517
.container {
16-
padding: 15px 30px;
18+
margin: 15px 30px 30px 30px;
19+
flex: 1;
20+
display: flex;
21+
flex-direction: column;
1722
}
1823

1924
.header {
@@ -90,11 +95,9 @@
9095

9196
#holder {
9297
display: flex;
98+
flex: 1;
9399
align-items: center;
94100
justify-content: center;
95-
margin: 0 auto;
96-
padding: 10px;
97-
height: 275px;
98101
border: 1px solid #e0e5e6;
99102
background-color: #f6f8f8;
100103
color: #466a72;
@@ -132,7 +135,7 @@
132135
};
133136
</script>
134137

135-
<header class="header">
138+
<div class="header">
136139
<svg class="header-icon" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
137140
<g stroke="none" fill="none" fill-rule="evenodd">
138141
<path class="svg-stroke" d="M11.7014354,7.72646259 C7.91761319,7.04380371 4.81334929,7.69369948 3.61536899,9.74908711 C2.72656361,11.27402 3.03878853,13.3122813 4.27551338,15.4489979 M6.32642733,18.1886712 C7.89193828,19.8928217 9.9666792,21.548102 12.4120986,22.9466461 C18.2414315,26.2804624 24.2930499,27.0779063 27.1669222,25.1368228 M29.8456419,24.0565148 C29.8456419,23.1971812 29.1423799,22.5005537 28.2748621,22.5005537 C27.4073444,22.5005537 26.7040823,23.1971812 26.7040823,24.0565148 C26.7040823,24.9158484 27.4073444,25.612476 28.2748621,25.612476 C29.1423799,25.612476 29.8456419,24.9158484 29.8456419,24.0565148 L29.8456419,24.0565148 Z"></path>
@@ -154,7 +157,7 @@
154157
<a href="https://github.com/electron/electron">Repository</a>
155158
<a href="http://electron.atom.io/blog">Blog</a>
156159
</div>
157-
</header>
160+
</div>
158161

159162
<div class="container">
160163

0 commit comments

Comments
 (0)