Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/thick-trainers-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@quassel/frontend": patch
---

Allow to drag select new events next to existing events
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.spaciousCalendar {
:global(.fc-timegrid-col-events) {
margin-right: 14%;
}
}

.eventSleepIndicator {
background-image: url("/public/star.svg") !important;
background-repeat: repeat !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import { useStore } from "@nanostores/react";
import { EventImpl } from "@fullcalendar/core/internal";
import styles from "./EntryCalendar.module.css";
import { $layout } from "../../../stores/layout";

Check warning on line 15 in apps/frontend/src/components/questionnaire/calendar/EntryCalendar.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/components/questionnaire/calendar/EntryCalendar.tsx#L15

Added line #L15 was not covered by tests

const calendarBaseConfig: FullCalendar["props"] = {
allDaySlot: false,
Expand Down Expand Up @@ -68,6 +69,8 @@
const t = useStore(messages);
const { time } = useStore(format);

const { fullscreen, admin } = useStore($layout);

Check warning on line 72 in apps/frontend/src/components/questionnaire/calendar/EntryCalendar.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/components/questionnaire/calendar/EntryCalendar.tsx#L72

Added line #L72 was not covered by tests

const [opened, { open, close }] = useDisclosure();

const [entryUpdatingId, setEntryUpdadingId] = useState<number>();
Expand Down Expand Up @@ -179,6 +182,7 @@
{...calendarBaseConfig}
plugins={[timeGridPlugin, interactionPlugin]}
events={events}
viewClassNames={fullscreen || admin ? styles.spaciousCalendar : undefined}

Check warning on line 185 in apps/frontend/src/components/questionnaire/calendar/EntryCalendar.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/components/questionnaire/calendar/EntryCalendar.tsx#L185

Added line #L185 was not covered by tests
dayHeaderContent={({ date }) => (
<Button
variant="subtle"
Expand Down