From 2f73f0492bef1d10810b73b1844eb51c16b880c1 Mon Sep 17 00:00:00 2001 From: Marin Treselj Date: Wed, 31 May 2017 15:43:30 +0200 Subject: [PATCH] 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" />