Skip to content

Build your personal knowledge base with Trilium Notes

chore(calendar): use text instead of icons

Elian Doranb5cfbc92af5b
diff --git a/apps/client/src/widgets/collections/calendar/index.tsx b/apps/client/src/widgets/collections/calendar/index.tsx
index a5e7518ab5..c63e482b6d 100644
--- a/apps/client/src/widgets/collections/calendar/index.tsx
+++ b/apps/client/src/widgets/collections/calendar/index.tsx
@@ -186,6 +186,7 @@ function CalendarHeaderCenter({ calendarRef }: { calendarRef: RefObject<FullCale
<ActionButton icon="bx bx-chevron-left" text={currentViewData?.previousText ?? ""} onClick={() => calendarRef.current?.prev()} />
<span className="title">{title}</span>
<ActionButton icon="bx bx-chevron-right" text={currentViewData?.nextText ?? ""} onClick={() => calendarRef.current?.next()} />
+ <Button text={t("calendar.today")} onClick={() => calendarRef.current?.today()} />
</div>;
}
@@ -196,16 +197,14 @@ function CalendarHeaderRight({ calendarRef }: { calendarRef: RefObject<FullCalen
<>
<ButtonGroup>
{CALENDAR_VIEWS.map(viewData => (
- <ActionButton
+ <Button
key={viewData.type}
- icon={viewData.icon}
text={viewData.name}
className={currentViewType === viewData.type ? "active" : ""}
onClick={() => calendarRef.current?.changeView(viewData.type)}
/>
))}
</ButtonGroup>
- <ActionButton icon="bx bx-calendar-event" text={t("calendar.today")} onClick={() => calendarRef.current?.today()} />
</>
);
}
diff --git a/apps/client/src/widgets/note_bars/CollectionProperties.css b/apps/client/src/widgets/note_bars/CollectionProperties.css
index 5b0736c97a..2afe5ae1be 100644
--- a/apps/client/src/widgets/note_bars/CollectionProperties.css
+++ b/apps/client/src/widgets/note_bars/CollectionProperties.css
@@ -18,4 +18,8 @@
.spacer {
flex-grow: 1;
}
+
+ button.btn {
+ min-width: 0;
+ }
}