Skip to content

Commit

Permalink
Responsiveness updates to the print modal window - issue #804 (#1173)
Browse files Browse the repository at this point in the history
* Responsiveness updates to the print modal window

Fixed radio inputs’ margins and made modal window scrollable and it’s
width contained inside the main window

* Restricted max height of the modal

Now it shouldn’t become bigger then the original version
  • Loading branch information
Robert Kirsz authored and mbarto committed Oct 19, 2016
1 parent 3fad9fd commit 00d27dc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
4 changes: 1 addition & 3 deletions web/client/plugins/Print.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ const Print = React.createClass({
},
glyph: "print"
},
style: {
width: "840px !important"
}
style: {}
};
},
componentWillMount() {
Expand Down
19 changes: 15 additions & 4 deletions web/client/product/assets/css/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -317,15 +317,22 @@ html, body, #container, .fill {
opacity: 0.5;
color: white;
}

@media (min-width: 992px) {
#mapstore-print-panel {
width: 825px !important;
width: 825px;
}
}

@media (max-width: 991px) {
#mapstore-print-panel {
width: 500px !important;
width: 700px;
}
}

@media (max-width: 767px) {
#mapstore-print-panel {
width: 98%;
}
}

Expand All @@ -341,8 +348,10 @@ html, body, #container, .fill {
float: right;
}

#mapstore-print-panel input[type=radio] {
margin-left: 20px;
@media (min-width: 768px) {
#mapstore-print-panel input[type=radio] {
margin: 0 8px 0 20px;
}
}

#mapstore-print-panel .print-map-preview {
Expand Down Expand Up @@ -435,6 +444,8 @@ html, body, #container, .fill {

.modal-body {
background-color: white;
max-height: calc(100vh - 190px);
overflow-y: auto;
}

#mapstore-shapefile-upload {
Expand Down

0 comments on commit 00d27dc

Please sign in to comment.