Skip to content

Commit 8a96978

Browse files
authored
Merge pull request #350 from openscript-ch/342-hard-to-create-overlapping-events-directly-by-selecting-the-slots-on-tablet
342 hard to create overlapping events directly by selecting the slots on tablet
2 parents 430a52c + 730e7f2 commit 8a96978

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.changeset/thick-trainers-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@quassel/frontend": patch
3+
---
4+
5+
Allow to drag select new events next to existing events

apps/frontend/src/components/questionnaire/calendar/EntryCalendar.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
.spaciousCalendar {
2+
:global(.fc-timegrid-col-events) {
3+
margin-right: 14%;
4+
}
5+
}
6+
17
.eventSleepIndicator {
28
background-image: url("/public/star.svg") !important;
39
background-repeat: repeat !important;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { format, i18n } from "../../../stores/i18n";
1212
import { useStore } from "@nanostores/react";
1313
import { EventImpl } from "@fullcalendar/core/internal";
1414
import styles from "./EntryCalendar.module.css";
15+
import { $layout } from "../../../stores/layout";
1516

1617
const calendarBaseConfig: FullCalendar["props"] = {
1718
allDaySlot: false,
@@ -68,6 +69,8 @@ export function EntryCalendar({
6869
const t = useStore(messages);
6970
const { time } = useStore(format);
7071

72+
const { fullscreen, admin } = useStore($layout);
73+
7174
const [opened, { open, close }] = useDisclosure();
7275

7376
const [entryUpdatingId, setEntryUpdadingId] = useState<number>();
@@ -179,6 +182,7 @@ export function EntryCalendar({
179182
{...calendarBaseConfig}
180183
plugins={[timeGridPlugin, interactionPlugin]}
181184
events={events}
185+
viewClassNames={fullscreen || admin ? styles.spaciousCalendar : undefined}
182186
dayHeaderContent={({ date }) => (
183187
<Button
184188
variant="subtle"

0 commit comments

Comments
 (0)