94512ee062
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.
21 lines
662 B
Handlebars
21 lines
662 B
Handlebars
<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>
|