[prettify] calendar takes whole screen, slot duration is 1h and creation selection is transparent
This commit is contained in:
+2
-3
@@ -1,10 +1,9 @@
|
|||||||
.App {
|
.App {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family:"Roboto";
|
font-family: "Roboto";
|
||||||
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.App-header {
|
.App-header {
|
||||||
background-color: #282c34;
|
background-color: #282c34;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
|||||||
@@ -4,12 +4,14 @@ main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.calendar {
|
.calendar {
|
||||||
width: 100%;
|
flex-grow: 1;
|
||||||
height: 100%;
|
overflow: "hidden";
|
||||||
|
height: 90vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
border-right: 2px gray;
|
border-right: 2px gray;
|
||||||
|
width: 20vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc .fc-daygrid-day {
|
.fc .fc-daygrid-day {
|
||||||
@@ -21,6 +23,31 @@ main {
|
|||||||
height: 60px !important; /* Default is ~40px */
|
height: 60px !important; /* Default is ~40px */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fc-timegrid-slot {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fc-timegrid-slot::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
border-top: 1px dotted #ccc;
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
.fc .fc-timegrid-slot-label {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
padding-top: 2px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .fc-timegrid-slot::after {
|
||||||
|
border-top: 1px dotted rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
#calendar {
|
#calendar {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden; /* Important: let FullCalendar handle internal scroll */
|
overflow: hidden; /* Important: let FullCalendar handle internal scroll */
|
||||||
|
|||||||
@@ -218,9 +218,9 @@ export default function CalendarApp() {
|
|||||||
initialView="timeGridWeek"
|
initialView="timeGridWeek"
|
||||||
editable={true}
|
editable={true}
|
||||||
selectable={true}
|
selectable={true}
|
||||||
|
height={"100%"}
|
||||||
select={handleDateSelect}
|
select={handleDateSelect}
|
||||||
nowIndicator
|
nowIndicator
|
||||||
selectMirror={true}
|
|
||||||
views={{
|
views={{
|
||||||
timeGridWeek: { titleFormat: { month: "long", year: "numeric" } },
|
timeGridWeek: { titleFormat: { month: "long", year: "numeric" } },
|
||||||
}}
|
}}
|
||||||
@@ -228,9 +228,8 @@ export default function CalendarApp() {
|
|||||||
events={filteredEvents}
|
events={filteredEvents}
|
||||||
weekNumbers
|
weekNumbers
|
||||||
weekNumberFormat={{ week: "long" }}
|
weekNumberFormat={{ week: "long" }}
|
||||||
slotDuration={"00:30:00"}
|
slotDuration={"01:00:00"}
|
||||||
slotLabelInterval={"00:30:00"}
|
scrollTime={"08:00:00"}
|
||||||
scrollTime={"09:00:00"}
|
|
||||||
unselectAuto={false}
|
unselectAuto={false}
|
||||||
allDayText=""
|
allDayText=""
|
||||||
slotLabelFormat={{
|
slotLabelFormat={{
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
height: 7vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menubar-item {
|
.menubar-item {
|
||||||
|
|||||||
Reference in New Issue
Block a user