Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center-aligning content of WebAuthN page #21127

Merged
merged 11 commits into from
Sep 9, 2022
Prev Previous commit
Next Next commit
Removed unneeded tailored CSS, added Fomantic UI classes
  • Loading branch information
neonn committed May 4, 2022
commit 172b5d19ad8ebbc4b64f93f3e8e9154891b6d082
12 changes: 7 additions & 5 deletions templates/repo/issue/view_content/sidebar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,13 @@
{{end}}

<div class="ui divider"></div>
<div class="ui reference">
<span class="text">References: {{.Issue.ReferenceLink}}</span>
<span class="copy-button" data-clipboard-text="{{.Issue.ReferenceLink}}">
{{svg "octicon-copy"}}
</span>
<div class="ui reference equal width compact grid">
<div class="row">
<span class="text column">References: {{.Issue.ReferenceLink}}</span>
<span class="copy-button two wide column" data-clipboard-text="{{.Issue.ReferenceLink}}">
{{svg "octicon-copy"}}
</span>
</div>
</div>

{{if and .IsRepoAdmin (not .Repository.IsArchived)}}
Expand Down
5 changes: 0 additions & 5 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -1203,11 +1203,6 @@
}

.ui.reference {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;

.text {
white-space: nowrap;
overflow: hidden;
Expand Down