diff options
author | Iwasa Kazmi <kzmizzz@gmail.com> | 2018-09-29 15:28:47 +0900 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-09-29 09:28:47 +0300 |
commit | 67806611923eee071513a74671bc00429c3a89fa (patch) | |
tree | e6c0a66e7b9c8999dd9dd74cf973dd955c7cb8da /templates/repo | |
parent | e6d54d511d43cf2419a8572ca1432ec553df7d35 (diff) | |
download | gitea-67806611923eee071513a74671bc00429c3a89fa.tar.gz gitea-67806611923eee071513a74671bc00429c3a89fa.zip |
Fix layout of the topics editing form (#4971)
* Fix layout of the topic edit.
- made right-hand column wider so that it has enough space for "Done" button.
- fixed issue that jQuery's .show() breaks functionality of the Semantic UI Grid.
* Improve switching visibility of the topic edit
Changes to support old browsers that doesn't support 'flex' keyword.
- Removed style "display: none" from index.css so that
the grid can be displayed without specifying new "display" style.
- Added style "display:none" to the grid element in HTML template
as the initial style.
- In index.js, visibility of the grid element is changed by
set "display:none" style to the element or removing it from the element.
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/home.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 3f9c6231a3..8c81ae29ea 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -28,7 +28,7 @@ {{if .IsRepositoryAdmin}}<a id="manage_topic" style="cursor:pointer;margin-left:10px;">{{.i18n.Tr "repo.topic.manage_topics"}}</a>{{end}} </div> {{if .IsRepositoryAdmin}} - <div class="ui repo-topic-edit grid form segment error" id="topic_edit" > + <div class="ui repo-topic-edit grid form segment error" id="topic_edit" style="display:none"> <div class="fourteen wide column"> <div class="field"> <div class="ui fluid multiple search selection dropdown"> @@ -40,7 +40,7 @@ </div> </div> </div> - <div class="one wide column"> + <div class="two wide column"> <a class="ui compact button primary" href="javascript:;" id="save_topic" data-link="{{.RepoLink}}/topics">{{.i18n.Tr "repo.topic.done"}}</a> </div> |