Skip to content

Commit

Permalink
Merge 13c773c into 4878719
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed May 4, 2020
2 parents 4878719 + 13c773c commit ee941c1
Show file tree
Hide file tree
Showing 21 changed files with 426 additions and 185 deletions.
67 changes: 46 additions & 21 deletions app/assets/stylesheets/mda_viewer.scss
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
/* Excel-like list of variables */
table.connections td {
padding: 2px;
padding: 2px;
}
table.connections {
table-layout: fixed;
table-layout: fixed;
}

/* React table cell: give clickable widthxheight when the cell is empty*/
.editable-react-table-cell {
background-color: #f0f8e0;
background-color: #f0f8e0;
}

span.react-table-cell {
min-height: 24px;
min-height: 24px;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
input.react-table-cell {
width: 100%;
box-sizing: border-box;
-webkit-box-sizing:border-box;
-moz-box-sizing: border-box;
width: 100%;
box-sizing: border-box;
-webkit-box-sizing:border-box;
-moz-box-sizing: border-box;
}

/* Operation logs */
.listing {
padding: 10px;
color: silver;
background-color: black;
border-radius: 10px;
font-family: "Courier New", monospace;
padding: 10px;
color: silver;
background-color: black;
border-radius: 10px;
font-family: "Courier New", monospace;
white-space: pre;
}

.listing-line {
padding: 0px;
padding: 0px;
}

/* Analysis editor */
div.mda-section {
margin-top: 0px;
margin-top: 0px;
}

div.editor-section {
margin-top:10px;
margin-top:10px;
}

div.editor-section-label {
margin:10px 0px 10px 0px;
margin:10px 0px 10px 0px;
}

.text-inactive {
Expand All @@ -59,7 +59,7 @@ div.editor-section-label {

/* Discipline Editor */
div.editor-discipline {
margin-top:5px;
margin-top:5px;
}

/* XDSM tooltip */
Expand All @@ -75,8 +75,33 @@ a.analysis-link {

/* Analysis BreadCrumbs*/
.breadcrumb {
background: #ffffff;
padding: 10px 15px 2px 15px !important;
font-size: 12px;
background: #ffffff;
padding: 10px 15px 2px 15px !important;
font-size: 12px;
}

/* Prevent from modal shift due to scrollbar */
body.modal-open {
width: 100% !important;
padding-right: 0 !important;
overflow-y: scroll !important;
position: fixed !important;
}

/* modal backdrop fix for distribution modals */
.modal:nth-of-type(even) {
z-index: 1052 !important;
}
.modal-backdrop.show:nth-of-type(odd) {
z-index: 1051 !important;
}

/* scroll in modal */
.distribution-list-modal .modal-dialog{
overflow-y: initial !important
}

.distribution-list-modal .modal-body{
height: 400px;
overflow-y: auto;
}
2 changes: 1 addition & 1 deletion app/controllers/api/v1/connections_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ def connection_update_params
params.require(:connection).permit(:name, :type, :shape, :units, :desc, :active, :role,
parameter_attributes: [:id, :_destroy, :init, :lower, :upper],
scaling_attributes: [:id, :_destroy, :ref, :ref0, :res_ref],
distribution_attributes: [:id, :_destroy, :kind, options_attributes: [:id, :_destroy, :name, :value]])
distributions_attributes: [:id, :_destroy, :kind, options_attributes: [:id, :_destroy, :name, :value]])
end
end
Loading

0 comments on commit ee941c1

Please sign in to comment.