@@ -94,7 +94,7 @@ const SectionHeader: FC<{ title: string; className: string }> = ({
9494 className,
9595} ) => (
9696 < div
97- className = { `w--full rounded--medium p--2 ${ className } ` }
97+ className = { `w--full rounded--small rounded-t-- medium p--2 ${ className } ` }
9898 style = { { borderRadius : '8px 8px 4px 4px' } }
9999 >
100100 < span className = 'title title--small text-stroke' > { title } </ span >
@@ -108,7 +108,7 @@ const AssignmentCompletionBox: FC<{
108108 label : string ;
109109} > = ( { mode, className, count, label } ) => (
110110 < div
111- className = { `flex ${ mode === 'horizontal' ? 'flex--row' : 'w--full flex--col' } flex--center rounded--medium p--2 ${ className } ` }
111+ className = { `flex ${ mode === 'horizontal' ? 'flex--row' : 'w--full flex--col' } flex--center rounded-small p--2 ${ className } ` }
112112 style = { { borderRadius : '8px' , flex : 1 } }
113113 >
114114 < p
@@ -217,25 +217,53 @@ const AssignmentItem: FC<{ assignment: AssignmentWithCourse }> = ({
217217 < div className = 'item' >
218218 < div className = 'meta' > </ div >
219219 < div className = 'content' >
220- < span className = 'title title--small clamp--1' >
220+ < span
221+ className = 'title title--small clamp--1 w--full'
222+ style = { {
223+ overflow : 'hidden' ,
224+ textOverflow : 'ellipsis' ,
225+ whiteSpace : 'nowrap' ,
226+ } }
227+ >
221228 { stripNonAscii ( assignment . name ) }
222229 </ span >
223- < p className = 'flex gap--small' >
230+ < div
231+ className = 'flex w--full gap--small'
232+ style = { { maxWidth : '100%' } }
233+ >
224234 { assignment . dueAt && (
225235 < span
226236 className = 'label label--small label--underline clamp--none'
227- style = { { overflow : 'hidden' , whiteSpace : 'nowrap' } }
237+ style = { { whiteSpace : 'nowrap' } }
228238 >
229239 { assignment . dueAt . toLocaleString ( ) }
230240 </ span >
231241 ) }
232- < span
233- className = 'label label--small clamp--1'
234- style = { { flexShrink : 999 } }
242+ < div
243+ style = { {
244+ flexGrow : 1 ,
245+ isolation : 'isolate' ,
246+ minWidth : '0px' ,
247+ position : 'relative' ,
248+ } }
235249 >
236- { stripNonAscii ( assignment . course . name ) }
237- </ span >
238- </ p >
250+ < p
251+ className = 'label label--small'
252+ style = { {
253+ display : 'block' ,
254+ overflow : 'hidden' ,
255+ position : 'absolute' ,
256+ right : 0 ,
257+ textOverflow : 'ellipsis' ,
258+ top : 0 ,
259+ whiteSpace : 'nowrap' ,
260+ width : '100%' ,
261+ } }
262+ >
263+ { stripNonAscii ( assignment . course . name ) }
264+ </ p >
265+ </ div >
266+ </ div >
239267 </ div >
240268 </ div >
241269) ;
@@ -313,7 +341,7 @@ export const TodoListDisplay: FC<TodoListDisplayProps> = ({
313341
314342 return (
315343 < >
316- < div className = { `layout ${ layout === 'full' ? 'p--0 pb--2 ' : '' } ` } >
344+ < div className = { `layout ${ layout === 'full' ? '' : '' } ` } >
317345 < div
318346 className = { `flex ${ layout === 'halfVertical' ? 'flex--col' : 'flex--row' } gap h--full w--full` }
319347 >
@@ -342,8 +370,8 @@ export const TodoListDisplay: FC<TodoListDisplayProps> = ({
342370 ( section ) => section . assignments . length > 0 ,
343371 ) . length > 0 ? (
344372 < div
345- className = { `gap flex ${ layout === 'halfHorizontal' ? 'flex--row ' : 'flex--col' } ${ layout === 'halfVertical' ? 'w--full' : 'h--full' } ` }
346- style = { { flexGrow : 1 } }
373+ className = { `${ layout === 'halfHorizontal' ? 'grid--cols-3 grid ' : 'gap flex flex--col' } ${ layout === 'halfVertical' ? 'w--full' : 'h--full' } ` }
374+ style = { { flexGrow : 1 , maxWidth : '100%' } }
347375 >
348376 { sections
349377 . filter (
0 commit comments