Skip to content

Commit 5d2dae2

Browse files
committed
fix task view
1 parent 480c1d7 commit 5d2dae2

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

web/src/App.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
236245
export 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>

web/src/theme.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)