From 88a1a787433de5357a87cab0a6f999f66a6de027 Mon Sep 17 00:00:00 2001 From: "Konrad M." Date: Tue, 21 Apr 2026 21:53:17 +0200 Subject: [PATCH] fix(tasks): reorder toolbar buttons; wrap list in tasks-body; remove flex-wrap on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit group-mode toggle moved before view toggle in markup order. Filter panel, task list, and FAB wrapped in .tasks-body for scroll containment. tasks-toolbar flex-wrap removed — actions stay on one line on narrow screens. --- public/pages/tasks.js | 34 ++++++++++++++++++---------------- public/styles/tasks.css | 32 +++++++++++++++++--------------- 2 files changed, 35 insertions(+), 31 deletions(-) diff --git a/public/pages/tasks.js b/public/pages/tasks.js index 5cb2c1a..91ce4ec 100644 --- a/public/pages/tasks.js +++ b/public/pages/tasks.js @@ -1430,6 +1430,10 @@ export async function render(container, { user }) {

${t('tasks.title')}

+
+ + +
-
- - -
-
- +
+
+ -
- ${[1,2,3].map(() => ` -
-
-
-
-
`).join('')} +
+ ${[1,2,3].map(() => ` +
+
+
+
+
`).join('')} +
+
-
`; diff --git a/public/styles/tasks.css b/public/styles/tasks.css index bf9a830..46418c0 100644 --- a/public/styles/tasks.css +++ b/public/styles/tasks.css @@ -13,14 +13,17 @@ * Seiten-Layout * -------------------------------------------------------- */ .tasks-page { - padding: var(--space-4); - padding-bottom: var(--space-16); max-width: var(--content-max-width); margin: 0 auto; } +.tasks-body { + padding: var(--space-4); + padding-bottom: var(--space-16); +} + @media (min-width: 1024px) { - .tasks-page { + .tasks-body { padding: var(--space-8); padding-bottom: var(--space-16); } @@ -32,20 +35,18 @@ .tasks-toolbar { display: flex; align-items: center; - gap: var(--space-3); - margin-bottom: var(--space-4); - flex-wrap: wrap; + gap: var(--space-2); + padding: var(--space-3) var(--space-4); border-top: 3px solid var(--module-accent); + border-bottom: 1px solid var(--color-border); + background-color: var(--color-surface); } .tasks-toolbar__title { - font-size: var(--text-2xl); + font-size: var(--text-lg); font-weight: var(--font-weight-bold); - flex: 1 1 auto; - min-width: min-content; + flex: 1; white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; } .tasks-toolbar__actions { @@ -54,6 +55,7 @@ gap: var(--space-2); } + /* Gruppierungs-Toggle */ .group-toggle { display: flex; @@ -196,15 +198,15 @@ } /* Filter-Panel */ -.filter-panel { +.filter-panel:not([hidden]) { + display: flex; + flex-direction: column; + gap: var(--space-3); background-color: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); - display: flex; - flex-direction: column; - gap: var(--space-3); } .filter-panel__group {