Skip to content

Commit

Permalink
feat: added pinned months to budget groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverth committed Nov 9, 2024
1 parent a7f52cc commit ffb77a5
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/app/components/feature/BudgetGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
<span
v-for="(month, index) of months"
:key="month"
:class="[$style.month, { [$style.current]: isCurrentMonth(index) }]"
:class="[
$style.month,
{
[$style.current]: isCurrentMonth(index),
[$style.start]: index === 0,
[$style.end]: index === 11
}
]"
>
<span>{{ month }}</span>
</span>
Expand Down Expand Up @@ -137,6 +144,12 @@ const reorder = (evt: ReorderEvent) => {
padding-right: 20px;
padding-bottom: 5px;
position: sticky;
position: -webkit-sticky;
top: 0px;
background: var(--app-background);
border: 2px var(--app-background);

Check failure on line 152 in src/app/components/feature/BudgetGroups.vue

View workflow job for this annotation

GitHub Actions / Build app

Delete `··`
&.current {
font-weight: var(--font-weight-l);
}
Expand All @@ -149,6 +162,16 @@ const reorder = (evt: ReorderEvent) => {
margin-top: 0;
}
}
&.start {
border-bottom-left-radius: var(--border-radius-l);
padding-left: 8px;
}
&.end {
border-bottom-right-radius: var(--border-radius-l);
padding-right: 8px;
}
}
.addGroupBtn {
Expand Down

0 comments on commit ffb77a5

Please sign in to comment.