File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,12 @@ export const createCalendarStore = (root: IRootStore) => {
155155 const lStart = DateTime . fromISO ( upcomingEvent . date )
156156 const minutes = lStart . diffNow ( 'minutes' ) . minutes
157157
158+ const title = `${ upcomingEvent . title ! . trim ( ) . substring ( 0 , 18 ) } ${
159+ upcomingEvent . title ! . length > 18 ? '...' : ''
160+ } `
161+
158162 if ( minutes <= 0 ) {
159- solNative . setStatusBarItemTitle ( upcomingEvent . title ?. trim ( ) ?? '' )
163+ solNative . setStatusBarItemTitle ( title )
160164 return
161165 }
162166
@@ -167,9 +171,7 @@ export const createCalendarStore = (root: IRootStore) => {
167171 ) } m`
168172
169173 solNative . setStatusBarItemTitle (
170- `${ upcomingEvent . title ! . trim ( ) . substring ( 0 , 18 ) } ${
171- upcomingEvent . title ! . length > 18 ? '...' : ''
172- } • ${ relativeHoursStr } ${ relativeMinutesStr } `,
174+ `${ title } • ${ relativeHoursStr } ${ relativeMinutesStr } ` ,
173175 )
174176 } )
175177 } ,
You can’t perform that action at this time.
0 commit comments