Skip to content

Commit

Permalink
remove wrong CSS styles
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Nov 3, 2022
1 parent 5b584a9 commit 3de2029
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/repo/view_file.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
<a class="ui mini basic button unescape-button" style="display: none;">{{.locale.Tr "repo.unescape_control_characters"}}</a>
<a class="ui mini basic button escape-button">{{.locale.Tr "repo.escape_control_characters"}}</a>
{{end}}
<button class="ui mini basic button small compact tooltip" id="copy-file-content" data-content="{{.locale.Tr "copy_content"}}" aria-label="{{.locale.Tr "copy_content"}}"
{{if or (.IsMarkup) (.IsRenderedHTML) (not .IsTextSource)}}
disabled
{{end}}
<button class="ui mini basic button compact tooltip" id="copy-file-content" data-content="{{.locale.Tr "copy_content"}}" aria-label="{{.locale.Tr "copy_content"}}"
{{if or (.IsMarkup) (.IsRenderedHTML) (not .IsTextSource)}}
disabled
{{end}}
>
{{svg "octicon-copy" 14}}
</button>
Expand Down

0 comments on commit 3de2029

Please sign in to comment.