From 2fcf6b4756504d8839b3207091ffea7619aa6823 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 28 May 2023 01:13:22 +0000 Subject: [PATCH] style fixes, bug fixes --- Controller/BackendController.php | 1 + Theme/Backend/css/styles.css | 7 +++++++ Theme/Backend/css/styles.scss | 7 +++++++ Theme/Backend/kanban-archive.tpl.php | 2 +- Theme/Backend/kanban-board.tpl.php | 14 +++++++++----- Theme/Backend/kanban-dashboard.tpl.php | 26 ++++++++++++++------------ 6 files changed, 39 insertions(+), 18 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 10c6d1a..859438e 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -108,6 +108,7 @@ final class BackendController extends Controller $board = KanbanBoardMapper::get() ->with('columns') ->with('columns/cards') + ->with('columns/cards/comments') ->with('columns/cards/tags') ->with('columns/cards/tags/title') ->where('id', (int) $request->getData('id')) diff --git a/Theme/Backend/css/styles.css b/Theme/Backend/css/styles.css index 1053388..6bb3d28 100755 --- a/Theme/Backend/css/styles.css +++ b/Theme/Backend/css/styles.css @@ -5,3 +5,10 @@ flex: 1; } .kanban-column .portlet-head div { flex: 0; } + .kanban-board { + column-gap: 1rem; + flex-wrap: nowrap; + } + .kanban-column { + min-width: 300px; + } \ No newline at end of file diff --git a/Theme/Backend/css/styles.scss b/Theme/Backend/css/styles.scss index 1ecf2ce..47d3d52 100755 --- a/Theme/Backend/css/styles.scss +++ b/Theme/Backend/css/styles.scss @@ -11,4 +11,11 @@ flex: 0; } } + + min-width: 300px; +} + +.kanban-board { + column-gap: 1rem; + flex-wrap: nowrap; } \ No newline at end of file diff --git a/Theme/Backend/kanban-archive.tpl.php b/Theme/Backend/kanban-archive.tpl.php index f748f43..1b892b8 100755 --- a/Theme/Backend/kanban-archive.tpl.php +++ b/Theme/Backend/kanban-archive.tpl.php @@ -26,7 +26,7 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('Archive'); ?>
+
getHtml('Archive'); ?>
diff --git a/Theme/Backend/kanban-board.tpl.php b/Theme/Backend/kanban-board.tpl.php index 5f17e5c..6c8f8d9 100755 --- a/Theme/Backend/kanban-board.tpl.php +++ b/Theme/Backend/kanban-board.tpl.php @@ -17,10 +17,13 @@ $board = $this->getData('board'); /** @var \Modules\Kanban\Models\KanbanColumn[] $columns */ $columns = $board->getColumns(); + +$columnCount = \count($columns); +$layout = \max(4, $columnCount); ?> -
+
getCards(); ?> -
+
printHtml($column->name); ?>
id); @@ -32,12 +35,13 @@ $columns = $board->getColumns();
description; ?>
+ + getTags(); foreach ($tags as $tag) : ?> + icon) ? '' : ''; ?>printHtml($tag->getL11n()); ?> +
- getTags(); foreach ($tags as $tag) : ?> - icon) ? '' : ''; ?>printHtml($tag->getL11n()); ?> - getHtml('More', '0', '0'); ?>
diff --git a/Theme/Backend/kanban-dashboard.tpl.php b/Theme/Backend/kanban-dashboard.tpl.php index 7bed13c..20589e2 100755 --- a/Theme/Backend/kanban-dashboard.tpl.php +++ b/Theme/Backend/kanban-dashboard.tpl.php @@ -22,6 +22,17 @@ $next = empty($boards) ? 'kanban/dashboard' : 'kanban/dashboard?{?}&id=' . \ echo $this->getData('nav')->render(); ?> + +
id); @@ -33,25 +44,16 @@ echo $this->getData('nav')->render(); ?>
description; ?>
+ getTags(); foreach ($tags as $tag) : ?> + icon) ? '' : ''; ?>printHtml($tag->getL11n()); ?> +
- getTags(); foreach ($tags as $tag) : ?> - icon) ? '' : ''; ?>printHtml($tag->getL11n()); ?> - getHtml('Open', '0', '0'); ?>
- - -
- - -