From 043e14e82e08c52e63a843fdee2bc704f3abb796 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 20 Jan 2015 07:45:17 +0100 Subject: [PATCH] min-height & min-width for contenteditable to show placeholder/editable area also on empty content. --- app/assets/stylesheets/zammad.css.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/zammad.css.scss b/app/assets/stylesheets/zammad.css.scss index 6bf9c33ea..7e7d545a5 100644 --- a/app/assets/stylesheets/zammad.css.scss +++ b/app/assets/stylesheets/zammad.css.scss @@ -140,6 +140,10 @@ blockquote { display: block; outline-style: none; border-radius: 3px; + + /* needed to make empty tags editable, otherwise no focus can be set */ + min-height: 10px; + min-width: 20px; } [contenteditable]:hover, [contenteditable]:focus { @@ -3176,16 +3180,17 @@ footer { overflow: hidden; position: relative; } - + .textBubble-overflowContainer { position: absolute; bottom: 0; left: 0; right: 0; background: white; - + .btn { padding: 7px 0; + font-size: 10px; } &:before {