forgejo/templates/repo
wxiaoguang 93eb914438
Improve markdown editor: width, height, preferred ()
Follow 


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>
2023-04-07 13:03:29 -04:00
..
actions Use data-tooltip-content for tippy tooltip () 2023-03-24 18:35:38 +08:00
branch Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
cite Use data-tooltip-content for tippy tooltip () 2023-03-24 18:35:38 +08:00
diff Merge template functions "dict/Dict/mergeinto" () 2023-04-07 09:39:08 -05:00
editor Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
find
graph Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
issue Improve markdown editor: width, height, preferred () 2023-04-07 13:03:29 -04:00
migrate Remove incorrect HTML self close tag () 2023-03-27 18:05:51 +02:00
projects Introduce GiteaLocaleNumber custom element to handle number localization on pages. () 2023-04-03 12:58:09 -04:00
pulls Remove incorrect HTML self close tag () 2023-03-27 18:05:51 +02:00
release Title can be empty when creating tag only () 2023-04-06 21:44:52 -04:00
settings Fix code view (diff) broken layout () 2023-04-04 19:05:07 +08:00
wiki Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
activity.tmpl
blame.tmpl Use data-tooltip-content for tippy tooltip () 2023-03-24 18:35:38 +08:00
branch_dropdown.tmpl
clone_buttons.tmpl Clean template/helper.go () 2023-04-07 03:31:41 -04:00
clone_script.tmpl Clean template/helper.go () 2023-04-07 03:31:41 -04:00
commit_page.tmpl Remove incorrect HTML self close tag () 2023-03-27 18:05:51 +02:00
commit_status.tmpl Use different SVG for pending and running actions () 2023-03-31 17:24:39 +08:00
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl
commits_list_small.tmpl Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
commits_table.tmpl Use data-tooltip-content for tippy tooltip () 2023-03-24 18:35:38 +08:00
create.tmpl Remove incorrect HTML self close tag () 2023-03-27 18:05:51 +02:00
create_helper.tmpl
empty.tmpl
file_info.tmpl Use data-tooltip-content for tippy tooltip () 2023-03-24 18:35:38 +08:00
forks.tmpl Remove fomantic ".link" selector and styles () 2023-04-03 20:47:23 -04:00
graph.tmpl
header.tmpl Use data-tooltip-content for tippy tooltip () 2023-03-24 18:35:38 +08:00
home.tmpl Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
icon.tmpl
packages.tmpl
search.tmpl Use data-tooltip-content for tippy tooltip () 2023-03-24 18:35:38 +08:00
search_name.tmpl Clean template/helper.go () 2023-04-07 03:31:41 -04:00
shabox_badge.tmpl
sub_menu.tmpl Remove fomantic ".link" selector and styles () 2023-04-03 20:47:23 -04:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
view_list.tmpl
watchers.tmpl