Skip to content

Commit 9ced400

Browse files
committed
Remove crummy adjustable columns.
1 parent 5122ed0 commit 9ced400

File tree

2 files changed

+14
-62
lines changed

2 files changed

+14
-62
lines changed

gx-view.css

-16
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,4 @@ pre {
9191
font-size: 20px;
9292
font-weight: normal;
9393
text-decoration: none;
94-
}
95-
96-
#source-pane {
97-
vertical-align: top;
98-
min-width: 100px;
99-
width: 33%;
100-
}
101-
#record-pane {
102-
min-width: 100px;
103-
}
104-
105-
#splitter {
106-
width: 5px;
107-
min-width: 5px;
108-
background-color: #ddd7cd;
109-
cursor: col-resize;
11094
}

index.html

+14-46
Original file line numberDiff line numberDiff line change
@@ -2822,30 +2822,6 @@
28222822
}
28232823
}
28242824

2825-
function resizeTableColumns(isResizing, prevX) {
2826-
return function (e) {
2827-
e.preventDefault();
2828-
isResizing = true;
2829-
prevX = e.clientX;
2830-
2831-
$(window).on('mousemove', function (e) {
2832-
if (!isResizing) return;
2833-
const dx = e.clientX - prevX;
2834-
prevX = e.clientX;
2835-
let newWidth = $('#source-pane').outerWidth() + dx;
2836-
newWidth = newWidth < 100 ? 100 : newWidth;
2837-
$('#source-pane').css('width', `${newWidth}px`);
2838-
});
2839-
2840-
$(window).on('mouseup', function () {
2841-
$(window).off('mousemove');
2842-
$(window).off('mouseup');
2843-
isResizing = false;
2844-
console.log("Done resizing");
2845-
});
2846-
};
2847-
}
2848-
28492825
$(function () {
28502826
$("#source-viewer").hide();
28512827

@@ -3070,10 +3046,6 @@
30703046

30713047
$(document).keydown(handleEditorKeydown);
30723048

3073-
let isResizing = false;
3074-
let prevX = 0;
3075-
$('#splitter').on('mousedown', resizeTableColumns(isResizing, prevX));
3076-
30773049
dragElement(document.getElementById("new-person"));
30783050
dragElement(document.getElementById("new-relationship"));
30793051
// See if the tab has been reloaded, in which case we want to restored the data that would otherwise be lost.
@@ -3257,24 +3229,20 @@
32573229
</div>
32583230
</div>
32593231
<div class="row">
3260-
<table>
3261-
<tr>
3262-
<td id="source-pane">
3263-
<div id="source-viewer" class="sticky-top" style="max-height: 100%; overflow: scroll">
3264-
<div id="source-file"></div>
3265-
<div id="gx-editor"></div>
3266-
<div><span id="image-link">IMAGE LINK</span>&nbsp;&nbsp;<span id="nbx-link">ENTITY VIEWER</span></div>
3267-
<div id="sft-summary"></div>
3268-
</div>
3269-
</td>
3270-
<td id="splitter"></td>
3271-
<td>
3272-
<div id="rec-list"></div>
3273-
<div id="rel-chart"></div>
3274-
<div id="record"></div>
3275-
</td>
3276-
</tr>
3277-
</table>
3232+
<div class="col-4">
3233+
<div id="source-viewer" class="sticky-top" style="max-height: 100vh; overflow: scroll">
3234+
<div class="pt-4">&nbsp;</div>
3235+
<div id="source-file" class="pt-4"></div>
3236+
<div id="gx-editor" class="pt-2"></div>
3237+
<div><span id="image-link">IMAGE LINK</span>&nbsp;&nbsp;<span id="nbx-link">ENTITY VIEWER</span></div>
3238+
<div id="sft-summary"></div>
3239+
</div>
3240+
</div>
3241+
<div class="col-8 pt-4">
3242+
<div id="rec-list"></div>
3243+
<div id="rel-chart"></div>
3244+
<div id="record"></div>
3245+
</div>
32783246
</div>
32793247
</div>
32803248
</div>

0 commit comments

Comments
 (0)