From 73eff3d64ea1c0a06fc8b1ca098d28eae68f54dc Mon Sep 17 00:00:00 2001 From: Marin Treselj Date: Wed, 31 May 2017 08:13:53 +0200 Subject: [PATCH 1/5] Allows editing stack title by clicking it. Deprecates edit icon in the stack header. Signed-off-by: Marin Treselj --- css/style.css | 16 +++++----------- templates/part.board.mainView.php | 12 +++++------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/css/style.css b/css/style.css index 3490645ce..b9e721291 100644 --- a/css/style.css +++ b/css/style.css @@ -248,27 +248,21 @@ button.button-inline:hover { width: 100%; } -.stack h2 button, -.stack .stack-actions { - float: right; - margin: 0px 0px 0px 10px; +.stack h2 button { + margin-left: auto; + display: flex; + opacity: 0.25; } .stack h2 span { - width: 100%; white-space: normal; overflow: hidden; text-overflow: ellipsis; -} - -.stack h2 .stack-actions { - display: flex; - opacity: 0.25; + cursor: text; } .stack h2:hover .stack-actions { display: flex; - float: right; } .card { diff --git a/templates/part.board.mainView.php b/templates/part.board.mainView.php index 0b9c36a27..535a39877 100644 --- a/templates/part.board.mainView.php +++ b/templates/part.board.mainView.php @@ -34,19 +34,17 @@
-

{{ s.title }} +

+ {{ s.title }}
-
- - -
+

    From e06a2ad743d988aa5ccd7f8d22ec5c8bf6823eaa Mon Sep 17 00:00:00 2001 From: Marin Treselj Date: Wed, 31 May 2017 08:17:18 +0200 Subject: [PATCH 2/5] fix tabs Signed-off-by: Marin Treselj --- css/style.css | 4 ++-- templates/part.board.mainView.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index b9e721291..8d47ce0b5 100644 --- a/css/style.css +++ b/css/style.css @@ -250,7 +250,7 @@ button.button-inline:hover { .stack h2 button { margin-left: auto; - display: flex; + display: flex; opacity: 0.25; } @@ -258,7 +258,7 @@ button.button-inline:hover { white-space: normal; overflow: hidden; text-overflow: ellipsis; - cursor: text; + cursor: text; } .stack h2:hover .stack-actions { diff --git a/templates/part.board.mainView.php b/templates/part.board.mainView.php index 535a39877..460605a3b 100644 --- a/templates/part.board.mainView.php +++ b/templates/part.board.mainView.php @@ -35,7 +35,7 @@ data-columnindex="{{$index}}" id="column{{$index}}" style="">

    - {{ s.title }} + {{ s.title }}
    Date: Wed, 31 May 2017 15:43:30 +0200 Subject: [PATCH 3/5] Create new class for inline-editable text Signed-off-by: Marin Treselj --- css/style.css | 18 ++++++++++-------- templates/part.board.mainView.php | 5 ++--- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/css/style.css b/css/style.css index 8d47ce0b5..95ec00b40 100644 --- a/css/style.css +++ b/css/style.css @@ -58,6 +58,9 @@ button.button-inline:hover { display: flex !important; } +.editable-inline { + cursor: text; +} /** * Navigation sidebar */ @@ -248,20 +251,19 @@ button.button-inline:hover { width: 100%; } +.stack h2 span { + white-space: normal; + overflow: hidden; + text-overflow: ellipsis; +} + .stack h2 button { margin-left: auto; display: flex; opacity: 0.25; } -.stack h2 span { - white-space: normal; - overflow: hidden; - text-overflow: ellipsis; - cursor: text; -} - -.stack h2:hover .stack-actions { +.stack h2:hover button { display: flex; } diff --git a/templates/part.board.mainView.php b/templates/part.board.mainView.php index 460605a3b..b9adbf129 100644 --- a/templates/part.board.mainView.php +++ b/templates/part.board.mainView.php @@ -35,12 +35,11 @@ data-columnindex="{{$index}}" id="column{{$index}}" style="">

    - {{ s.title }} + {{ s.title }} + autofocus-on-insert required maxlength="100" />