Responsiveness and coordinates

This commit is contained in:
Nicolò P 2023-03-13 19:10:13 +01:00
parent 7813ac72a6
commit e7013e8977
3 changed files with 34 additions and 8 deletions

View File

@ -44,7 +44,6 @@ td ul {
padding-left: 0; padding-left: 0;
} }
.report-container { .report-container {
width: 75%;
margin: 0 auto; margin: 0 auto;
background-color: #fff; background-color: #fff;
padding: 1rem 1rem 3rem 1rem; padding: 1rem 1rem 3rem 1rem;
@ -52,20 +51,20 @@ td ul {
.mt-2 { .mt-2 {
margin-top: 2rem !important; margin-top: 2rem !important;
} }
td.key {
min-width: 400px;
}
table.table td, table.table td,
table.table th { table.table th {
border: none; border: none;
} }
#map { #map {
height: 450px; height: 500px;
} }
#gallery img { #gallery img {
max-height: 200px; max-height: 200px;
min-height: 200px; min-height: 200px;
} }
#coord span {
display: block;
}
/* Print styles */ /* Print styles */
@media print { @media print {
@ -78,3 +77,20 @@ table.table th {
display: none; display: none;
} }
} }
/* Responsiveness... */
@media (min-width: 1652px) {
.report-container {
width: 75%;
}
td.key {
min-width: 400px;
}
}
@media (max-width: 1652px) {
.report-container {
width: 100%;
}
td.key {
min-width: 200px;
}
}

View File

@ -42,6 +42,12 @@ document.addEventListener('readystatechange', async () => {
DataSpace.createMap([lat, long]); DataSpace.createMap([lat, long]);
// Write coordinates below map
document.querySelector('#coord').innerHTML = `
<span><strong>Latitude</strong>: ${lat}</span>
<span><strong>Longitude</strong>: ${long}</span>
`;
resKeys = resKeys.filter(e => !e.includes('Coordinates')); resKeys = resKeys.filter(e => !e.includes('Coordinates'));
document.querySelector('#rep-tit') document.querySelector('#rep-tit')

View File

@ -37,17 +37,21 @@
<div id="error"></div> <div id="error"></div>
<h2 class="mt-1 p-2" id="rep-tit"></h2> <h2 class="mt-1 p-2" id="rep-tit"></h2>
<div class="columns"> <div class="columns">
<div class="column col-7"> <div class="column col-lg-7 col-md-12 col-sm-12">
<table class="table mt-2" id="res-before"> <table class="table mt-2" id="res-before">
<tbody> <tbody>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="column col-5 p-2 mt-2"> <div class="column col-lg-5 col-md-12 col-sm-12 p-2 mt-1">
<div id="map"></div> <div id="map"></div>
<p class="mt-2 p-2">
<strong>Coordinates</strong>
</p>
<p id="coord" class="p-2"></p>
</div> </div>
</div> </div>
<div class="container d-hide mt-2 pt-2"> <div class="container d-hide mt-1 pt-2">
<p class="text-small"> <p class="text-small">
Click on any image to open gallery Click on any image to open gallery
</p> </p>