Skip to content

Commit

Permalink
fix #956: iframe size for legacy CSV downloads from KC
Browse files Browse the repository at this point in the history
  • Loading branch information
pmusaraj committed Oct 3, 2016
1 parent 6036166 commit 9cb43d4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 42 deletions.
2 changes: 1 addition & 1 deletion jsapp/js/components/formEditors.es6
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export var ProjectDownloads = React.createClass({
: null
] : null
, this.state.type.endsWith('_legacy') ?
<bem.FormModal__item m='iframe'>
<bem.FormModal__item m='downloads'>
<iframe src={
this.props.asset.deployment__data_download_links[
this.state.type]
Expand Down
89 changes: 48 additions & 41 deletions jsapp/scss/components/_kobo.report-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,57 +135,64 @@
}
}

.form-view__cell--iframe {
width:100%;
.form-view__cell--iframe {
width:100%;
height: 100%;
overflow: hidden;

.form-modal__form {
height: 100%;
overflow: hidden;
}

.form-modal__form {
height: 100%;
}
iframe {
width:100%;
min-height: 800px;
padding-right: 5px;
}

iframe {
width:100%;
min-height: 800px;
padding-right: 5px;
}
.form-modal__item--actions {
padding:0px 40px;
padding-top: 10px;
height: 60px;
margin-bottom: 20px;
}

.form-modal__item--actions {
padding:0px 40px;
padding-top: 10px;
height: 60px;
margin-bottom: 20px;
}
.form-modal__item--wrapper {
height: calc(100% - 80px);
overflow: auto;
padding:0px 40px;
}

.form-modal__item--wrapper {
height: calc(100% - 80px);
overflow: auto;
padding:0px 40px;
}
.form-modal__item label.long {
font-weight: 400;
font-size: 14px;
}

.form-modal__item label.long {
font-weight: 400;
font-size: 14px;
}
.form-modal__item textarea {
min-height: 80px;
margin-bottom: 10px;
}

.form-modal__item textarea {
min-height: 80px;
margin-bottom: 10px;
.form-modal__item--sector {
width: 48%;
margin-right: 2%;
float: left;
}
.form-modal__item--country {
width: 50%;
float: left;
&:after {
clear:both;
}
}
}

.form-modal__item--sector {
width: 48%;
margin-right: 2%;
float: left;
}
.form-modal__item--country {
width: 50%;
float: left;
&:after {
clear:both;
}
}
.form-modal__item--downloads {
iframe {
min-width: 100%;
min-height:400px;
}
}

// report graph settings
.graph-settings {
Expand Down

0 comments on commit 9cb43d4

Please sign in to comment.