From 04d9b52113713ebea280c09b6f3c80287408f9de Mon Sep 17 00:00:00 2001 From: Gilles123 Date: Sun, 24 Sep 2017 16:06:56 -0700 Subject: [PATCH] Fix nick change on Safari for Mac and iOS It is currently impossible to edit the nick text after pressing the edit button on Safari for iOS and Mac because user-select is set to None on Safari by default. This fixes that issue. Tested that it is not editable when it shouldn't be and that it doesn't break anything on Chrome or Firefox. --- client/css/style.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/css/style.css b/client/css/style.css index 0c619981..7b37f8fa 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -1498,6 +1498,14 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */ outline: none; } +[contenteditable="true"] { + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; + cursor: text; +} + /* Nick editor */ #form #nick {