Skip to content

Commit

Permalink
Minor tweak of styling and ran prettier on everything
Browse files Browse the repository at this point in the history
  • Loading branch information
rberenguel committed Dec 8, 2024
1 parent 8321dd0 commit 9aaf630
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions backgrounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const backgrounds = [
"synthwave.jpg",
"pencils.jpg",
"bubbles.jpg",
"bubbles.jpg", // I particularly like this one
"flows-78259.jpg",
"creation.jpg",
"starry2024.jpg", // Extra seasonal weight
"starry2024.jpg",
"starry2024.jpg",
];
Binary file modified backgrounds/flows-78259.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added backgrounds/starry2024.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions lib/taskUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ function addTasksToDiv(_tasks, targetDivId) {
row.classList.remove("dim");
hl = true;
}
if (row.id === "reference") {
row.classList.remove("dim");
}
}
if (!hl) {
taskRows.map((t) => t.classList.remove("dim"));
Expand Down
9 changes: 8 additions & 1 deletion lib/weatherUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
let weatherChart;

Chart.defaults.color = "#eee";
const plotWeather = (location, targetDivId) => {
const plotWeather = (title, location, targetDivId) => {
const { lat, long } = location;
const targetDiv = document.getElementById(targetDivId);
if (!targetDiv) {
Expand Down Expand Up @@ -59,6 +59,13 @@ const plotWeather = (location, targetDivId) => {
pointStyleWidth: 10,
},
},
title: {
display: true,
font: {
size: 10,
},
text: title,
},
},
},
data: {
Expand Down
6 changes: 6 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ span[data-title]:hover::after {
color: var(--light);
padding: 0.5em;
border-radius: 0.5em;
width: 30em;
overflow: hidden;
text-overflow: ellipsis;
}

.taskRow.error > div {
Expand All @@ -208,6 +211,9 @@ span[data-title]:hover::after {
padding: 0.5em;
border-radius: 0.5em;
white-space: pre; /* Preserve newline character */
width: 30em;
overflow: hidden;
text-overflow: ellipsis;
}

.taskRow[data-prio]:hover::after {
Expand Down

0 comments on commit 9aaf630

Please sign in to comment.