diff --git a/ckanext/spatial/public/css/geojson_preview.css b/ckanext/spatial/public/css/geojson_preview.css index 4220ee8..0dd66e5 100644 --- a/ckanext/spatial/public/css/geojson_preview.css +++ b/ckanext/spatial/public/css/geojson_preview.css @@ -2,6 +2,7 @@ html, body { height: 600px; padding: 0; margin: 0; + background: none; } #map { @@ -10,19 +11,6 @@ html, body { height: 100%; } -.popup-table { - border-collapse: collapse; - border: 1px solid #bbb; - table-layout: fixed; +#map .table{ width: 300px; } - -.popup-table td, .popup-table th { - border: 1px solid #bbb; - padding: 4px; - word-wrap: break-word; -} - -.popup-table tr:nth-child(even) { - background-color: #eee; -} \ No newline at end of file diff --git a/ckanext/spatial/public/js/geojson_preview.js b/ckanext/spatial/public/js/geojson_preview.js index 19e5391..d656061 100644 --- a/ckanext/spatial/public/js/geojson_preview.js +++ b/ckanext/spatial/public/js/geojson_preview.js @@ -2,7 +2,7 @@ ckan.module('geojsonpreview', function (jQuery, _) { return { options: { - table: '{body}', + table: '{body}
', row:'{key}{value}', style: { opacity: 0.7, diff --git a/ckanext/spatial/templates/dataviewer/geojson.html b/ckanext/spatial/templates/dataviewer/geojson.html index 29c6bc3..6ee998e 100644 --- a/ckanext/spatial/templates/dataviewer/geojson.html +++ b/ckanext/spatial/templates/dataviewer/geojson.html @@ -1,6 +1,10 @@ {% extends "dataviewer/base.html" %} {% block page %} + {%- block styles %} + {% resource g.main_css[6:] %} + {% endblock %} +