forked from kevadesu/forgejo
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>       </details> --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
97d5ec2aeb
commit
93eb914438
7 changed files with 203 additions and 55 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue