From cfb056d871ba377b6dd86bf43761a795d76dbedb Mon Sep 17 00:00:00 2001 From: Nicolas Perriault Date: Wed, 3 May 2017 17:11:18 +0200 Subject: [PATCH] Fix erroneously linkable char count. --- public/style.css | 4 ++++ src/View/Draft.elm | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/public/style.css b/public/style.css index 1da55bd..ea5e17e 100644 --- a/public/style.css +++ b/public/style.css @@ -312,6 +312,10 @@ body { clear: both; } +.charcount { + cursor: default; +} + .in-reply-to .well { padding: 10px; } diff --git a/src/View/Draft.elm b/src/View/Draft.elm index 818c5c1..03c7d09 100644 --- a/src/View/Draft.elm +++ b/src/View/Draft.elm @@ -263,13 +263,12 @@ draftView ({ draft, currentUser } as model) = , onClick (DraftEvent ClearDraft) ] [ text "Clear" ] - , button - [ type_ "button" - , class <| + , div + [ class <| if limitExceeded then - "btn btn-danger active" + "btn btn-danger charcount active" else - "btn btn-default active" + "btn btn-default charcount active" ] [ text <| toString charCount ] , button