Skip to content

Commit 6eaf170

Browse files
committed
clean up
1 parent 30437a7 commit 6eaf170

File tree

4 files changed

+13
-21
lines changed

4 files changed

+13
-21
lines changed

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
<form method="POST" action="{{.Issue.Link}}/watch">
274274
<input type="hidden" name="watch" value="{{if $.IssueWatch.IsWatching}}0{{else}}1{{end}}">
275275
{{$.CsrfTokenHtml}}
276-
<button class="fluid ui button gt-df gt-jc">
276+
<button class="fluid ui button">
277277
{{if $.IssueWatch.IsWatching}}
278278
{{svg "octicon-mute" 16 "gt-mr-3"}}
279279
{{.locale.Tr "repo.issues.unsubscribe"}}
@@ -558,7 +558,7 @@
558558
{{if or .PinEnabled .Issue.IsPinned}}
559559
<form class="gt-mt-2" method="POST" {{if $.NewPinAllowed}}action="{{.Issue.Link}}/pin"{{else}}data-tooltip-content="{{.locale.Tr "repo.issues.max_pinned"}}"{{end}}>
560560
{{$.CsrfTokenHtml}}
561-
<button class="fluid ui button gt-df gt-jc {{if not $.NewPinAllowed}}disabled{{end}}">
561+
<button class="fluid ui button {{if not $.NewPinAllowed}}disabled{{end}}">
562562
{{if not .Issue.IsPinned}}
563563
{{svg "octicon-pin" 16 "gt-mr-3"}}
564564
{{.locale.Tr "pin"}}

templates/repo/release_tag_header.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{{if $canReadReleases}}
55
<div class="gt-df">
6-
<div class="gt-f1">
6+
<div class="gt-f1 gt-df gt-ac">
77
<h2 class="ui compact small menu header small-menu-items">
88
<a class="{{if .PageIsReleaseList}}active {{end}}item" href="{{.RepoLink}}/releases">{{.locale.Tr "repo.release.releases"}}</a>
99
{{if $canReadCode}}

web_src/css/base.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,6 +2331,15 @@ table th[data-sortt-desc] .svg {
23312331
vertical-align: middle;
23322332
}
23332333

2334+
.ui.ui.button {
2335+
justify-content: center;
2336+
}
2337+
2338+
.ui.ui.labeled.button {
2339+
gap: 0;
2340+
align-items: stretch;
2341+
}
2342+
23342343
.flex-items-block > .item,
23352344
.flex-text-block {
23362345
display: flex;

web_src/css/repo.css

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@
2020
margin-top: 2px;
2121
}
2222

23-
.repository .repo-header .repo-buttons .svg {
24-
margin: 0 0.42857143em 0 -0.21428571em;
25-
}
26-
27-
.repository .repo-header .button {
28-
margin-top: 2px;
29-
margin-bottom: 2px;
30-
}
31-
3223
.repository .tabs .navbar {
3324
justify-content: initial;
3425
}
@@ -2879,6 +2870,7 @@ tbody.commit-list {
28792870
flex-direction: row;
28802871
flex-wrap: wrap;
28812872
word-break: keep-all;
2873+
gap: 0.25em;
28822874
}
28832875

28842876
@media (max-width: 767.98px) {
@@ -2902,15 +2894,6 @@ tbody.commit-list {
29022894
color: var(--color-primary-dark-1);
29032895
}
29042896

2905-
.repo-buttons .ui.labeled.button {
2906-
cursor: initial;
2907-
}
2908-
2909-
.repo-buttons .ui.labeled.button > .label {
2910-
border-left: 0 !important;
2911-
margin: 0 !important;
2912-
}
2913-
29142897
.repo-buttons .ui.labeled.button.disabled {
29152898
pointer-events: inherit !important;
29162899
}

0 commit comments

Comments
 (0)