Skip to content

Commit

Permalink
#189 Added opacity to past events + increase zIndex of Red Line
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiGasai committed Sep 26, 2023
1 parent 6bd8ab5 commit 90bcc7c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "google-calendar",
"name": "Google Calendar",
"version": "1.10.6",
"version": "1.10.7",
"minAppVersion": "0.12.0",
"description": "Interact with your Google Calendar from Inside Obsidian",
"author": "YukiGasai",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-calendar",
"version": "1.10.6",
"version": "1.10.7",
"description": "Interact with your Google Calendar from Inside Obsidian",
"main": "main.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions src/svelte/components/EventBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
if(width < 60) {
baseList.push("textSmall")
}
if(window.moment(location.event.end.date ?? location.event.end.dateTime).isSameOrBefore(window.moment())) {
baseList.push("googleCalendarEvent_Past")
}
return baseList.join(" ");
}
Expand Down Expand Up @@ -96,6 +99,10 @@ googleCalendarName_Id_{location.event.parent.id}
z-index: 1;
}
.googleCalendarEvent_Past {
opacity: 0.5;
}
.textSmall {
padding: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/svelte/components/TimeLine.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
height: 3px;
background: red;
overflow: visible;
z-index: 1;
z-index: 2;
}
.gcal-timeline {
Expand Down

0 comments on commit 90bcc7c

Please sign in to comment.