Skip to content

Commit

Permalink
increase width
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeGuilherme committed Sep 3, 2024
1 parent 419b608 commit 8366bdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ datalist {
.modal-content {
background-color: rgb(254, 254, 254, 0.8);
margin: auto;
padding: 20px;
padding: 5px;
border: 1px solid #888;
width: 450px;
width: 350px;
}

/* The Close Button */
Expand Down
6 changes: 3 additions & 3 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ loadLegend = (
let legendEl = document.getElementById(legendElId);

legendEl.style.display = 'block';
legendEl.style.width = (legendOrto && legendOrto.length > 0) ? '450px' : '150px';
legendEl.style.width = (legendOrto && legendOrto.length > 0) ? (mobileScreen() ? '350px' : '450px') : '150px';
legendEl.innerHTML = '';

let legendTitle = `
Expand Down Expand Up @@ -122,7 +122,7 @@ loadLegend = (
let slideIndex = getSlideIndex(activeSlide);
let sliderContent = (slideIndex > 2 && slideIndex < 7) ? `
<h4>Escolha a partir de qual ano exibir as cartas</h4>
<input type="range" min="${yearInterval.min}" max="${yearInterval.max}" value="${year}" id="sliderFilter" list="values" step="1"/>
<input type="range" min="${yearInterval.min}" max="${yearInterval.max}" value="${year}" id="sliderFilter" list="values" step="1" autocomplete="false"/>
<datalist id="values">
<option value="${yearInterval.min}" label="${yearInterval.min}"></option>
<option value="${yearInterval.max}" label="${yearInterval.max}"></option>
Expand Down Expand Up @@ -766,7 +766,7 @@ setProjectSettings = async () => {
var filteredEditionsTopo = editionsTopo.filter(year => parseInt(year, 10) >= (yearFilter || 1500))
var filteredEditionsOrto = editionsOrto.filter(year => parseInt(year, 10) >= (yearFilter || 1500))
new maplibregl.Popup({
maxWidth: '300px'
maxWidth: '350px'
})
.setLngLat(e.lngLat)
.setHTML(`
Expand Down

0 comments on commit 8366bdc

Please sign in to comment.