mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-21 09:06:46 +09:00
refactor: clean ui modal component (#39654)
1. use "button" element for the modal close button 2. remove "ui modal" width hacks
This commit is contained in:
1 parent
5bcb0ce0fc
commit
21cf3f774d
6 files changed
+36
-199
No files matched your search
@@ -64,7 +64,7 @@
|
||||
</div>
|
||||
|
||||
<div class="ui g-modal-confirm modal" id="test-modal-danger">
|
||||
<div class="header">dangerous action dialog {{svg "octicon-x" 16 "close-modal"}}</div>
|
||||
<div class="header">dangerous action dialog <button type="button" class="close-modal"></button></div>
|
||||
<div class="content">hello, this is the modal dialog content, this is a dangerous operation</div>
|
||||
{{template "base/modal_actions_confirm" (dict "ModalButtonDangerText" "I know and must do this is dangerous operation")}}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user