Skip to content

Commit

Permalink
Responsiveness updates to the print modal window
Browse files Browse the repository at this point in the history
Fixed radio inputs’ margins and made modal window scrollable and it’s
width contained inside the main window
  • Loading branch information
robertkirsz committed Oct 18, 2016
1 parent 9e3ad2a commit 1014c84
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;
height: calc(100vh - 190px);
overflow-y: auto;
}

#mapstore-shapefile-upload {
Expand Down

0 comments on commit 1014c84

Please sign in to comment.