diff --git a/src/lib/components/calendar.svelte b/src/lib/components/calendar.svelte
index eaa2ac0..dbfabf1 100644
--- a/src/lib/components/calendar.svelte
+++ b/src/lib/components/calendar.svelte
@@ -1,11 +1,4 @@
@@ -218,7 +150,9 @@
class:other-month={!day.isCurrentMonth}
class:today={day.isToday}
class:has-image={day.entry?.image}
- onclick={ day.entry ? () => dayClickCallback(day.entry.id) : null }
+ onclick={day.entry?.id
+ ? () => dayClickCallback(true, day.entry.id)
+ : () => dayClickCallback(false, day.iso)}
style={day.entry?.image
? `background-image: url(${day.entry.image}); background-size: cover; background-position: center;`
: ""}
@@ -254,13 +188,11 @@
border-bottom: 1px solid rgba(166, 168, 179, 0.12);
}
- .expand-btn {
- width: 36px;
- height: 36px;
+ .expand-btn,
+ .nav-btn {
border: 1px solid rgba(166, 168, 179, 0.2);
background: transparent;
color: #009fb7;
- font-size: 24px;
cursor: pointer;
border-radius: 4px;
display: flex;
@@ -269,26 +201,19 @@
transition: all 0.2s;
}
- .expand-btn:hover {
- background: rgba(255, 255, 255, 0.1);
- border-color: #009fb7;
+ .expand-btn {
+ width: 36px;
+ height: 36px;
+ font-size: 24px;
}
.nav-btn {
width: 32px;
height: 32px;
- border: 1px solid rgba(166, 168, 179, 0.2);
- background: transparent;
- color: #009fb7;
font-size: 20px;
- cursor: pointer;
- border-radius: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.2s;
}
+ .expand-btn:hover,
.nav-btn:hover {
background: rgba(0, 159, 183, 0.1);
border-color: #009fb7;
@@ -317,7 +242,6 @@
box-sizing: border-box;
color: #98a0a6;
position: relative;
- z-index: 1;
}
.day.has-image {
@@ -326,10 +250,7 @@
.image-overlay {
position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
+ inset: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 1;
}
@@ -338,7 +259,6 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: 8px;
position: relative;
z-index: 2;
}
@@ -361,7 +281,6 @@
height: 8px;
border-radius: 50%;
background-color: #4a9eff;
- display: inline-block;
margin-left: 8px;
}