Skip to content

Commit dbd26be

Browse files
committed
fix lints
1 parent bec774e commit dbd26be

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

preview/src/components/calendar/style.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
/* Calendar Container */
22
.calendar {
3+
display: flex;
4+
flex-direction: row;
35
border: 1px solid var(--primary-color-6);
46
border-radius: 8px;
57
background-color: var(--primary-color-2);
68
box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
79
font-family:
810
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
911
sans-serif;
10-
display: flex;
11-
flex-direction: row;
1212
}
1313

1414
/* Calendar Navigation */
1515
.calendar-navigation {
16+
position: relative;
1617
display: flex;
1718
align-items: center;
1819
justify-content: center;
19-
gap: 0.5rem;
2020
padding: 0.75rem;
21-
padding-top: 0.75rem;
22-
padding-bottom: 0.25rem;
23-
padding-left: calc(0.75rem + 1.75rem + 0.5rem);
24-
padding-right: calc(0.75rem + 1.75rem + 0.5rem);
25-
position: relative;
21+
padding: 0.75rem calc(0.75rem + 1.75rem + 0.5rem) 0.25rem;
22+
gap: 0.5rem;
2623
}
2724

2825
.calendar-nav-title {

primitives/src/calendar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ impl CalendarViewContext {
922922
fn offset_view_date(&self) -> Date {
923923
let base_ctx: BaseCalendarContext = consume_context();
924924
let view_date = (base_ctx.view_date)();
925-
925+
926926
nth_month_next(view_date, self.offset).unwrap_or(view_date)
927927
}
928928

0 commit comments

Comments
 (0)