mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 13:01:15 +00:00
ca39d74363
The modal was broken in two ways: - On small screens, the input box was partially hanging outside the modal. Fixed with flexbox and increased modal width. - The clipboard copy was not working because the modal had both `data-clipboard-text` and `data-clipboard-target`, while we only support one of those. Made a small tweak in clipboard as well so that it will still fall back to target if text is empty. (cherry picked from commit 94512ee0628dc0d2b697441a4355ace54b6515cd)
21 lines
662 B
Go HTML Template
21 lines
662 B
Go HTML Template
<div class="ui small modal" id="cite-repo-modal">
|
|
<div class="header">
|
|
{{ctx.Locale.Tr "repo.cite_this_repo"}}
|
|
</div>
|
|
<div class="content">
|
|
<div class="ui stackable secondary menu">
|
|
<div class="ui action input" id="citation-panel">
|
|
{{template "repo/cite/cite_buttons" .}}
|
|
<a id="goto-citation-btn" class="ui basic jump icon button" href="{{$.RepoLink}}/src/{{$.BranchName}}/CITATION.cff" data-tooltip-content="{{ctx.Locale.Tr "repo.find_file.go_to_file"}}">
|
|
{{svg "octicon-file-moved"}}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="actions">
|
|
<button class="ui cancel button">
|
|
{{ctx.Locale.Tr "cancel"}}
|
|
</button>
|
|
</div>
|
|
</div>
|