Skip to content

Commit f1ed224

Browse files
Tabular view design improvements
1 parent 19171e2 commit f1ed224

File tree

3 files changed

+34
-40
lines changed

3 files changed

+34
-40
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iknow-entity-browser",
3-
"version": "0.5.6",
3+
"version": "0.5.7",
44
"description": "Visualizer for iKnow entities",
55
"main": "gulpfile.babel.js",
66
"scripts": {

src/static/index.html

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,28 @@
3838
<i id="dropChildrenButton" class="ui icon-unlink"></i>
3939
<i id="removeButton" class="ui icon-remove"></i>
4040
</div>
41+
<div class="controls">
42+
<label>
43+
<i id="exportCSV" class="ui icon-share"></i>
44+
</label>
45+
</div>
4146
<div class="wrapper">
42-
<div class="controls">
43-
<label>
44-
<i id="exportCSV" class="ui icon-share"></i>
45-
</label>
46-
</div>
47-
<h1>Selected Nodes</h1>
48-
<div class="wrapper">
49-
<table>
50-
<thead>
51-
<tr>
52-
<th>ID</th>
53-
<th>Label</th>
54-
<th>Score</th>
55-
<th>Frequency</th>
56-
<th>Spread</th>
57-
<th>Relation</th>
58-
<th>Parent</th>
59-
</tr>
60-
</thead>
61-
<tbody>
47+
<table>
48+
<thead>
49+
<tr>
50+
<th>ID</th>
51+
<th>Label</th>
52+
<th>Score</th>
53+
<th>Frequency</th>
54+
<th>Spread</th>
55+
<th>Relation</th>
56+
<th>Parent</th>
57+
</tr>
58+
</thead>
59+
<tbody>
6260

63-
</tbody>
64-
</table>
65-
</div>
61+
</tbody>
62+
</table>
6663
</div>
6764
</div>
6865
<div id="settings">

src/static/scss/tabular.scss

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@import "mixins";
22
@import "const";
33

4+
$headerHeight: 36px;
5+
46
#table {
57

68
position: absolute;
@@ -18,27 +20,22 @@
1820
@include transform(translate(0,0));
1921
}
2022

23+
> .controls {
24+
position: relative;
25+
padding-left: 40px;
26+
top: 5px;
27+
}
28+
2129
> .wrapper {
2230

2331
overflow: auto;
24-
height: 100%;
25-
padding: 0 $defaultPadding $defaultPadding $defaultPadding;
32+
height: 100%; /* to be compatible with old browsers */
33+
height: calc(100% - #{$headerHeight});
34+
padding: $defaultPadding;
2635
box-sizing: border-box;
2736

28-
> .controls {
29-
position: relative;
30-
padding-left: 30px;
31-
top: 5px;
32-
}
33-
34-
> .wrapper {
35-
36-
position: relative;
37-
38-
table {
39-
width: 100%;
40-
}
41-
37+
table {
38+
width: 100%;
4239
}
4340

4441
}

0 commit comments

Comments
 (0)