Skip to content

Commit 5873e8a

Browse files
committed
Misc CSS fixes
1 parent b2feedd commit 5873e8a

File tree

8 files changed

+22
-19
lines changed

8 files changed

+22
-19
lines changed

templates/repo/home_sidebar_bottom.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<div class="flex-item">
55
<div class="flex-item-main">
66
<div class="flex-item-title">
7-
<a class="item muted" href="{{.RepoLink}}/releases">
7+
<a class="item muted tw-flex" href="{{.RepoLink}}/releases">
88
{{ctx.Locale.Tr "repo.releases"}}
9-
<span class="ui small label">{{.NumReleases}}</span>
109
</a>
10+
<span class="ui small label">{{.NumReleases}}</span>
1111
</div>
1212
<div class="flex-item">
1313
<div class="flex-item-leading">

templates/repo/home_sidebar_top.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="flex-item">
1010
<div class="flex-item-main">
1111
<div class="flex-item-title">{{ctx.Locale.Tr "repo.repo_desc"}}</div>
12-
<div class="flex-item-body tw-text-16">
12+
<div class="flex-item-body tw-text-15">
1313
<div class="tw-flex tw-flex-col tw-gap-2 tw-mt-2">
1414
<div class="repo-description tw-break-anywhere tw-gap-2">
1515
{{- $description := .Repository.DescriptionHTML ctx -}}

templates/repo/issue/branch_selector_field.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ Still needs to figure out:
1515
*/}}
1616
{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
1717
<input id="ref_selector" name="ref" type="hidden" value="{{.Reference}}">
18-
<div class="ui dropdown select-branch branch-selector-dropdown ellipsis-text-items {{if not .HasIssuesOrPullsWritePermission}}disabled{{end}}"
18+
<div class="ui dropdown select-branch branch-selector-dropdown ellipsis-text-items {{if not .HasIssuesOrPullsWritePermission}}disabled{{end}} tw-w-full"
1919
data-no-results="{{ctx.Locale.Tr "no_results_found"}}"
2020
{{if and .Issue (or .IsIssueWriter .HasIssuesOrPullsWritePermission)}}data-url-update-issueref="{{$.RepoLink}}/issues/{{.Issue.Index}}/ref"{{end}}
2121
>
22-
<div class="ui button branch-dropdown-button">
22+
<div class="ui button branch-dropdown-button tw-w-full">
2323
<span class="text-branch-name gt-ellipsis">{{if .Reference}}{{$.RefEndName}}{{else}}{{ctx.Locale.Tr "repo.issues.no_ref"}}{{end}}</span>
2424
{{if .HasIssuesOrPullsWritePermission}}{{svg "octicon-triangle-down" 14 "dropdown icon"}}{{end}}
2525
</div>

templates/repo/issue/view_content/add_reaction.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{if ctx.RootData.IsSigned}}
2-
<div class="item action ui dropdown jump pointing top right select-reaction" data-action-url="{{.ActionURL}}">
2+
<div class="item action ui dropdown jump pointing top right select-reaction tw-px-[5px]" data-action-url="{{.ActionURL}}">
33
<a class="muted">{{svg "octicon-smiley"}}</a>
44
<div class="menu">
55
{{range $value := AllowedReactions}}

templates/shared/search/code/results.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{range $result := .SearchResults}}
1313
{{$repo := or $.Repo (index $.RepoMaps .RepoID)}}
1414
<div class="diff-file-box file-content non-diff-file-content repo-search-result">
15-
<h4 class="ui top attached header tw-font-normal tw-flex tw-flex-wrap">
15+
<h4 class="ui top attached header tw-font-normal tw-flex tw-flex-wrap tw-items-center tw-py-2">
1616
{{if not $.Repo}}
1717
<span class="file tw-flex-1">
1818
<a rel="nofollow" href="{{$repo.Link}}">{{$repo.FullName}}</a>
@@ -24,7 +24,7 @@
2424
{{else}}
2525
<span class="file tw-flex-1">{{.Filename}}</span>
2626
{{end}}
27-
<a role="button" class="ui basic tiny button" rel="nofollow" href="{{$repo.Link}}/src/commit/{{$result.CommitID | PathEscape}}/{{.Filename | PathEscapeSegments}}">{{ctx.Locale.Tr "repo.diff.view_file"}}</a>
27+
<a role="button" class="ui basic tiny button tw-mr-0" rel="nofollow" href="{{$repo.Link}}/src/commit/{{$result.CommitID | PathEscape}}/{{.Filename | PathEscapeSegments}}">{{ctx.Locale.Tr "repo.diff.view_file"}}</a>
2828
</h4>
2929
<div class="ui attached table segment">
3030
{{template "shared/searchfile" dict "RepoLink" $repo.Link "SearchResult" .}}

web_src/css/repo.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,13 +654,15 @@ td .commit-summary {
654654

655655
.repository.view.issue .comment-list .code-comment {
656656
border: 1px solid transparent;
657-
margin: 0;
657+
margin: 0 -4px;
658+
padding: 8px;
658659
}
659660

660661
.repository.view.issue .comment-list .code-comment .comment-header {
661662
background: transparent;
662663
border-bottom: 0;
663664
padding: 0;
665+
min-height: auto;
664666
}
665667

666668
.repository.view.issue .comment-list .code-comment .comment-content {
@@ -1286,9 +1288,9 @@ td .commit-summary {
12861288
box-shadow: 0 0 0 3px var(--color-primary-alpha-30) !important;
12871289
}
12881290

1289-
.comment:target .header::before {
1291+
.comment:target .comment-header::before {
12901292
border-right-color: var(--color-primary) !important;
1291-
filter: drop-shadow(-3px 0 0 var(--color-primary-alpha-30)) !important;
1293+
filter: drop-shadow(-4px 0 0 var(--color-primary-alpha-30)) !important;
12921294
}
12931295

12941296
.code-comment:target,
@@ -1339,7 +1341,7 @@ td .commit-summary {
13391341
.comment-header-right {
13401342
display: flex;
13411343
align-items: center;
1342-
gap: 0.5em;
1344+
gap: 6px;
13431345
}
13441346

13451347
.comment-header-right {

web_src/css/repo/reactions.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,17 @@
4141
margin-left: 4px;
4242
}
4343

44-
.ui.dropdown.select-reaction .menu {
45-
min-width: 170px; /* item-outer-width * 4 */
44+
.ui.dropdown.select-reaction .menu.visible {
45+
display: grid !important;
46+
grid-template-columns: repeat(4, 1fr);
47+
padding: 4px;
4648
}
4749

4850
.ui.dropdown.select-reaction .menu > .item {
49-
float: left;
50-
margin: 4px;
51-
font-size: 20px;
5251
width: 34px;
5352
height: 34px;
53+
font-size: 16px;
54+
aspect-ratio: 1;
5455
border-radius: var(--border-radius);
5556
display: flex;
5657
align-items: center;

web_src/js/components/RepoActionView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export default defineComponent({
489489
<button class="ui basic small compact button red" @click="cancelRun()" v-else-if="run.canCancel">
490490
{{ locale.cancel }}
491491
</button>
492-
<button class="ui basic small compact button link-action" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun">
492+
<button class="ui basic small compact button link-action tw-shrink-0" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun">
493493
{{ locale.rerun_all }}
494494
</button>
495495
</div>
@@ -520,7 +520,7 @@ export default defineComponent({
520520
<span class="job-brief-name tw-mx-2 gt-ellipsis">{{ job.name }}</span>
521521
</div>
522522
<span class="job-brief-item-right">
523-
<SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun tw-mx-2 link-action" :data-url="`${run.link}/jobs/${index}/rerun`" v-if="job.canRerun"/>
523+
<SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun tw-mx-2 link-action interact-fg" :data-url="`${run.link}/jobs/${index}/rerun`" v-if="job.canRerun"/>
524524
<span class="step-summary-duration">{{ job.duration }}</span>
525525
</span>
526526
</a>

0 commit comments

Comments
 (0)