summaryrefslogtreecommitdiffstats
path: root/apps/comments/css
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-05 15:45:30 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-05 15:45:30 +0100
commit142a2dd2eb071b268c2c114b5f29820602f18486 (patch)
treebeed08250ee96babe66b0480d28bfd6dcfa9185b /apps/comments/css
parent0196f0e54643e3a0b17588cb9f4c54d7d73c5b29 (diff)
downloadnextcloud-server-142a2dd2eb071b268c2c114b5f29820602f18486.tar.gz
nextcloud-server-142a2dd2eb071b268c2c114b5f29820602f18486.zip
Limit comment size to 1000 in UI
Whenever the limit is almost reached (90% of the length), a tooltip will appear. Once the limit is exceeded, the "Post" button will be disabled and the field will become red.
Diffstat (limited to 'apps/comments/css')
-rw-r--r--apps/comments/css/comments.css10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/comments/css/comments.css b/apps/comments/css/comments.css
index b86ed38efe7..85569102e1d 100644
--- a/apps/comments/css/comments.css
+++ b/apps/comments/css/comments.css
@@ -14,7 +14,7 @@
#commentsTabView .newCommentForm .message {
width: 90%;
- resize: none;
+ resize: vertical;
}
#commentsTabView .newCommentForm .submitLoading {
@@ -77,6 +77,14 @@
visibility: hidden;
}
+#commentsTabView .message.error {
+ color: #e9322d;
+ border-color: #e9322d;
+ -webkit-box-shadow: 0 0 6px #f8b9b7;
+ -moz-box-shadow: 0 0 6px #f8b9b7;
+ box-shadow: 0 0 6px #f8b9b7;
+}
+
.app-files .action-comment>img {
margin-right: 5px;
}