diff --git a/web/client/components/catalog/RecordGrid.jsx b/web/client/components/catalog/RecordGrid.jsx index 9825471370..8aee235e38 100644 --- a/web/client/components/catalog/RecordGrid.jsx +++ b/web/client/components/catalog/RecordGrid.jsx @@ -30,7 +30,7 @@ const RecordGrid = React.createClass({ records: [], onLayerAdd: () => {}, onError: () => {}, - column: {xs: 12, sm: 6, md: 6, lg: 6} + column: {xs: 12, sm: 12, md: 6, lg: 6} }; }, renderRecordItem(record) { @@ -53,7 +53,7 @@ const RecordGrid = React.createClass({ if (this.props.records) { let mapsList = this.props.records instanceof Array ? this.props.records : [this.props.records]; return ( - + {mapsList.map(this.renderRecordItem)} diff --git a/web/client/components/catalog/__tests__/RecordGrid-test.jsx b/web/client/components/catalog/__tests__/RecordGrid-test.jsx index 90e904e0cd..c49d5a71c8 100644 --- a/web/client/components/catalog/__tests__/RecordGrid-test.jsx +++ b/web/client/components/catalog/__tests__/RecordGrid-test.jsx @@ -53,7 +53,7 @@ describe('This test for Record Grid', () => { const itemDom = ReactDOM.findDOMNode(item); expect(itemDom).toExist(); - expect(itemDom.className).toBe("record-grid container"); + expect(itemDom.className).toBe("record-grid container-fluid"); }); // test data it('creates the component with data', () => { @@ -62,7 +62,7 @@ describe('This test for Record Grid', () => { const itemDom = ReactDOM.findDOMNode(item); expect(itemDom).toExist(); - expect(itemDom.className).toBe("record-grid container"); + expect(itemDom.className).toBe("record-grid container-fluid"); // check the thumbnail as a to verify thtat the url is really loaded into the component let img = TestUtils.findRenderedDOMComponentWithTag( diff --git a/web/client/components/misc/Dialog.jsx b/web/client/components/misc/Dialog.jsx index 5db851ad7b..e3f980a8cc 100644 --- a/web/client/components/misc/Dialog.jsx +++ b/web/client/components/misc/Dialog.jsx @@ -84,7 +84,7 @@ const Dialog = React.createClass({ ); let containerStyle = assign({}, this.props.style, this.props.backgroundStyle); return this.props.modal ? - (
+ (
{evt.preventDefault(); evt.stopPropagation(); }} className="modal-dialog" style={{background: "transparent"}}> {dialog}
) : diff --git a/web/client/jsapi/mapstore2.css b/web/client/jsapi/mapstore2.css index fe5c03b9f9..4738a1eb9c 100644 --- a/web/client/jsapi/mapstore2.css +++ b/web/client/jsapi/mapstore2.css @@ -444,11 +444,6 @@ min-width: 725px; } -#mapstore-catalog-panel { - width: auto; - margin: 100px; -} - #mapstore-catalog-panel .record-item { min-height: 150px; } diff --git a/web/client/plugins/MetadataExplorer.jsx b/web/client/plugins/MetadataExplorer.jsx index 6066a425b7..a85966eed8 100644 --- a/web/client/plugins/MetadataExplorer.jsx +++ b/web/client/plugins/MetadataExplorer.jsx @@ -66,12 +66,8 @@ const MetadataExplorerComponent = React.createClass({ modal: true, wrapWithPanel: true, panelStyle: { - minWidth: "300px", zIndex: 100, - position: "absolute", - overflow: "auto", - top: "100px", - right: "100px" + overflow: "auto" }, panelClassName: "toolbar-panel", toggleControl: () => {}, @@ -80,7 +76,7 @@ const MetadataExplorerComponent = React.createClass({ }; }, render() { - const panel =
; + const panel =
; if (this.props.wrap) { if (this.props.active) { if (this.props.wrapWithPanel) { @@ -88,7 +84,7 @@ const MetadataExplorerComponent = React.createClass({ {panel} ); } - return ( + return ( {panel} ); diff --git a/web/client/plugins/metadataexplorer/css/style.css b/web/client/plugins/metadataexplorer/css/style.css index 7cf8f6cb25..d9cd604675 100644 --- a/web/client/plugins/metadataexplorer/css/style.css +++ b/web/client/plugins/metadataexplorer/css/style.css @@ -40,3 +40,7 @@ div.record-grid .record-item .record-buttons { #mapstore-catalog-panel button.search-button { margin-bottom: 10px; } +.catalog_window .modal-dialog { + width: 98%; + margin-top: 10px; +} diff --git a/web/client/product/assets/css/viewer.css b/web/client/product/assets/css/viewer.css index 92d0fa3a1a..99a8fc6f92 100644 --- a/web/client/product/assets/css/viewer.css +++ b/web/client/product/assets/css/viewer.css @@ -389,11 +389,6 @@ html, body, #container, .fill { min-width: 725px; } -#mapstore-catalog-panel { - width: auto; - margin: 100px; -} - #mapstore-catalog-panel .record-item { min-height: 150px; }