summaryrefslogtreecommitdiffstats
path: root/web_src/css/repository.css
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-04-08 01:03:29 +0800
committerGitHub <noreply@github.com>2023-04-07 13:03:29 -0400
commit93eb914438fcec234842ed626278fecab3fefba6 (patch)
tree7d8800032322a64f3d07e151dcf32a2e732ec970 /web_src/css/repository.css
parent97d5ec2aeb4a3718a5f27aa4ad608e1a0e3a94b4 (diff)
downloadgitea-93eb914438fcec234842ed626278fecab3fefba6.tar.gz
gitea-93eb914438fcec234842ed626278fecab3fefba6.zip
Improve markdown editor: width, height, preferred (#23895)
Follow #23876 1. Fine tune the heights of the editors (like before) * Auto expand the editor (increase/decrease the height) when editing 2. Remember user's last used editor (textarea/easymde) in LocalStorage, then next time the editor will be switched automatically * No need to introduce extra config option, it satisfies all users, including who prefer EasyMDE 3. Also fix the width problem of Review Panel Screenshot: <details> ![image](https://user-images.githubusercontent.com/2114189/229518585-2e05827e-8355-48f3-a20c-2c8b9e60ce74.png) ![image](https://user-images.githubusercontent.com/2114189/229518173-4caa6da7-6ad9-40e9-bf1a-ceddfcd4b37f.png) ![image](https://user-images.githubusercontent.com/2114189/229507886-148e9b84-9b58-46d1-ba3f-727e1396f476.png) ![image](https://user-images.githubusercontent.com/2114189/229518258-9f522294-1e64-4b06-91ab-ab43b0353aaa.png) ![image](https://user-images.githubusercontent.com/2114189/229507752-6d540ac7-7748-4bb6-bc09-28acab32d31b.png) ![image](https://user-images.githubusercontent.com/2114189/229510899-de322af5-57e8-4dc5-9a61-771a3b1bee79.png) </details> --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/css/repository.css')
-rw-r--r--web_src/css/repository.css21
1 files changed, 0 insertions, 21 deletions
diff --git a/web_src/css/repository.css b/web_src/css/repository.css
index b4bfd17352..de1c2eda58 100644
--- a/web_src/css/repository.css
+++ b/web_src/css/repository.css
@@ -544,10 +544,6 @@
margin: 0;
}
-.repository .comment textarea {
- max-height: none !important;
-}
-
.repository.new.issue .comment.form .comment .avatar {
width: 3em;
}
@@ -1068,11 +1064,6 @@
min-height: 5rem;
}
-.repository.view.issue .comment-list .comment .ui.form textarea {
- height: 200px;
- font-family: var(--fonts-monospace);
-}
-
.repository.view.issue .comment-list .comment .edit.buttons {
margin-top: 10px;
}
@@ -1191,15 +1182,6 @@
margin-top: -8px;
}
-.repository .comment.form .content textarea {
- height: 200px;
- font-family: var(--fonts-monospace);
-}
-
-.repository .comment.form .content .CodeMirror-scroll {
- max-height: 85vh;
-}
-
.repository .milestone.list {
list-style: none;
padding-top: 15px;
@@ -2123,9 +2105,6 @@
margin-top: 0;
}
-.repository.wiki .form .CodeMirror-scroll {
- max-height: 85vh;
-}
@media (max-width: 767px) {
.repository.wiki .dividing.header .stackable.grid .button {