File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -233,11 +233,20 @@ function ProtectedDashboard() {
233233 return < AuthenticatedApp /> ;
234234}
235235
236+ function HomeRoute ( ) {
237+ const { user, isLoaded } = useUser ( ) ;
238+ const isMobile = window . innerWidth <= 767 ;
239+ if ( isLoaded && user && isMobile ) {
240+ return < Navigate to = "/dashboard" replace /> ;
241+ }
242+ return < LandingPage /> ;
243+ }
244+
236245export default function App ( ) {
237246 return (
238247 < BrowserRouter >
239248 < Routes >
240- < Route path = "/" element = { isElectron ? < ProtectedDashboard /> : < LandingPage /> } />
249+ < Route path = "/" element = { isElectron ? < ProtectedDashboard /> : < HomeRoute /> } />
241250 < Route path = "/dashboard" element = { < ProtectedDashboard /> } />
242251 < Route path = "*" element = { < Navigate to = "/" replace /> } />
243252 </ Routes >
Original file line number Diff line number Diff line change @@ -2425,6 +2425,24 @@ body::before {
24252425 .todo-item { padding-left : 36px ; }
24262426 .gantt-header { padding : 0 16px ; }
24272427
2428+ /* ── Todo table mobile: hide tag/owner/date, show name as primary ── */
2429+ .todo-table { table-layout : auto; }
2430+ .todo-table thead th : nth-child (3 ),
2431+ .todo-table thead th : nth-child (4 ),
2432+ .todo-table thead th : nth-child (5 ) { display : none; }
2433+ .todo-table-row .todo-table-tag ,
2434+ .todo-table-row .todo-table-owner ,
2435+ .todo-table-row .todo-table-date { display : none; }
2436+ .todo-table-detail-row .todo-table-tag ,
2437+ .todo-table-detail-row .todo-table-owner ,
2438+ .todo-table-detail-row .todo-table-date { display : none; }
2439+ .todo-table-detail-row td [colspan = "4" ] { display : table-cell; }
2440+ .todo-table-name {
2441+ white-space : normal;
2442+ word-break : break-word;
2443+ font-size : 13px ;
2444+ }
2445+
24282446 /* ── View tabs ── */
24292447 .view-tabs {
24302448 padding : 0 16px ;
You can’t perform that action at this time.
0 commit comments