Skip to content

Commit

Permalink
Adjustable width between source and record panes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbo committed Jul 18, 2024
1 parent 44c440c commit b99b67b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
22 changes: 21 additions & 1 deletion gx-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,24 @@ pre {
font-size: 20px;
font-weight: normal;
text-decoration: none;
}
}

#source-pane {
overflow: auto;
resize: horizontal;
}
#source-record-container {
/* make the two divs inside of this div be side-by-side. */
display: flex;
flex-wrap: nowrap;
}
#source-pane {
overflow: auto;
resize: horizontal;
width: 33%;
min-width: 100px;
}
#record-pane {
flex-grow: 1;
min-width: 100px;
}
8 changes: 3 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3044,7 +3044,6 @@
$("#new-person-fact-type").on("change", changeFactType);
$("#edit-person-fact-type").on("change", handleEditFactTypeChange);


$(document).keydown(handleEditorKeydown);

dragElement(document.getElementById("new-person"));
Expand Down Expand Up @@ -3229,8 +3228,8 @@
</div>
</div>
</div>
<div class="row">
<div class="col-4">
<div class="row" id="source-record-container">
<div id="source-pane">
<div id="source-viewer" class="sticky-top" style="max-height: 100vh; overflow: scroll">
<div class="pt-4">&nbsp;</div>
<div id="source-file" class="pt-4"></div>
Expand All @@ -3239,7 +3238,7 @@
<div id="sft-summary"></div>
</div>
</div>
<div class="col-8 pt-4">
<div id="record-pane">
<div id="rec-list"></div>
<div id="rel-chart"></div>
<div id="record"></div>
Expand Down Expand Up @@ -4104,6 +4103,5 @@ <h5 class="modal-title" id="edit-record-metadata-label">Update Record Metadata</
</div>
</div>
</div>

</body>
</html>

0 comments on commit b99b67b

Please sign in to comment.