Skip to content

Commit

Permalink
🔧 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SalaniLeo committed Jun 16, 2024
1 parent 7c7a1ff commit c867023
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ button {

/* Every container, with a shadow and border radius */
.container{
padding: 10px;
padding: 7.5px;
border-radius: var(--border-radius-heavy);
width: fit-content;
background-color: var(--secondary-color);
Expand Down
4 changes: 1 addition & 3 deletions src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function fetchApi() {
for (var i in response.list) {
let time = response.list[i]['dt_txt'].slice(11, 13);
let temperature = Math.round(response.list[i]['main']['temp'] * 10) / 10;
console.log(response.list[i]['dt'], getWeekDays(response.list[i]['dt']), time)

if (minTemp > temperature) {
minTemp = temperature;
}
Expand All @@ -55,7 +55,6 @@ function fetchApi() {

if (time == 21) {
let date = response.list[counter]['dt'];
console.log(counter)

if (counter - 3 <= 0 ) {
days.push({ name: `${getWeekDays(date)}`, icon: `${mapWeatherIconToName(response.list[0]['weather'][0]['icon'])}`, minTemp: `${minTemp}`, maxTemp: `${maxTemp}` });
Expand All @@ -68,7 +67,6 @@ function fetchApi() {
}
counter = counter + 1;
}
console.log(days)
return days;
}));
});
Expand Down
1 change: 1 addition & 0 deletions src/routes/weather.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
<style>
#weather {
display: flex;
min-width: 300px;
}
#location {
text-wrap: pretty;
Expand Down

0 comments on commit c867023

Please sign in to comment.