File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ function Home() {
98
98
</ div >
99
99
) : taskFetchState . status === "success" ? (
100
100
< div
101
- className = "flex flex-col items-center w-full max-h-full gap-2 overflow-clip max-w-xl"
101
+ className = "flex flex-col items-center w-full max-h-full gap-2 max-w-xl"
102
102
ref = { taskListRef }
103
103
>
104
104
< hr className = "w-64" />
@@ -148,7 +148,7 @@ function Home() {
148
148
</ Accordion . AccordionTrigger >
149
149
< Accordion . AccordionContent className = "py-2" >
150
150
< div
151
- className = "flex flex-col items-center w-full max-h-full gap-2 overflow-clip "
151
+ className = "flex flex-col items-center w-full max-h-full gap-2 overflow-scroll "
152
152
ref = { taskListRef }
153
153
>
154
154
{ doneTasks . map ( ( task , doneIndex ) => (
Original file line number Diff line number Diff line change @@ -95,8 +95,14 @@ export const TaskBuilderDialog = (props: {
95
95
}
96
96
// extract the start at time if any
97
97
const extractedStartAt = extractStartAt ( newTitle ) ;
98
+ // if the start at time is present, then set the start time to the start at time
98
99
let startTime : Date | undefined = props . editingTask . startTime ;
99
100
if ( extractedStartAt !== null ) {
101
+ // start time input is present -> init start time
102
+ // if initially the start time was not set
103
+ if ( startTime === undefined ) {
104
+ startTime = new Date ( ) ;
105
+ }
100
106
// set only the interdate part
101
107
startTime ?. setHours ( extractedStartAt . value . getHours ( ) ) ;
102
108
startTime ?. setMinutes ( extractedStartAt . value . getMinutes ( ) ) ;
@@ -105,6 +111,9 @@ export const TaskBuilderDialog = (props: {
105
111
newTitle . slice (
106
112
extractedStartAt . match . index + extractedStartAt . match [ 0 ] . length
107
113
) ;
114
+ } else {
115
+ // start time input is not present -> remove the start time
116
+ startTime = undefined ;
108
117
}
109
118
110
119
// extract the date if any
You can’t perform that action at this time.
0 commit comments