From 12fb89ad31d9ca41e803bf02e712375ff1696f06 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 28 Sep 2020 21:01:37 +0200 Subject: [PATCH] Fix task title input taking up almost no space if empty --- src/styles/components/task.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/styles/components/task.scss b/src/styles/components/task.scss index c6fb00d2..94ab96f3 100644 --- a/src/styles/components/task.scss +++ b/src/styles/components/task.scss @@ -33,6 +33,11 @@ .title { margin-bottom: 0; + + &.input { + // 1.8rem is the font-size, 1.125 is the line-height, .3em padding everywhere, 1px border around the whole thing. + min-height: calc(1.8rem * 1.125 + .6em + 2px); + } } .title.task-id {