Skip to content

Commit 0037301

Browse files
authored
Merge branch 'main' into fix-migrate-500
2 parents 7c3938c + 642e8c1 commit 0037301

File tree

8 files changed

+14
-19
lines changed

8 files changed

+14
-19
lines changed

templates/repo/diff/comments.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{template "shared/user/avatarlink" dict "user" .Poster}}
99
{{end}}
1010
<div class="content comment-container">
11-
<div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between">
11+
<div class="comment-header">
1212
<div class="comment-header-left tw-flex tw-items-center">
1313
{{if .OriginalAuthor}}
1414
<span class="text black tw-font-semibold tw-mr-1">

templates/repo/home_sidebar_top.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="repo-home-sidebar-top">
2-
<form class="ignore-dirty tw-flex tw-flex-1 tw-mt-1" action="{{.RepoLink}}/search" method="get">
2+
<form class="ignore-dirty tw-flex tw-flex-1" action="{{.RepoLink}}/search" method="get">
33
<div class="ui small action input tw-flex-1">
44
<input name="q" size="10" placeholder="{{ctx.Locale.Tr "search.code_kind"}}"> {{template "shared/search/button"}}
55
</div>

templates/repo/issue/view_content.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</a>
1414
{{end}}
1515
<div class="content comment-container">
16-
<div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between" role="heading" aria-level="3">
16+
<div class="comment-header" role="heading" aria-level="3">
1717
<div class="comment-header-left tw-flex tw-items-center">
1818
{{if .Issue.OriginalAuthor}}
1919
<span class="text black tw-font-semibold">

templates/repo/issue/view_content/comments.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</a>
2727
{{end}}
2828
<div class="content comment-container">
29-
<div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between" role="heading" aria-level="3">
29+
<div class="comment-header" role="heading" aria-level="3">
3030
<div class="comment-header-left tw-flex tw-items-center">
3131
{{if .OriginalAuthor}}
3232
<span class="text black tw-font-semibold tw-mr-1">
@@ -393,7 +393,7 @@
393393
{{if or .Content .Attachments}}
394394
<div class="timeline-item comment">
395395
<div class="content comment-container">
396-
<div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between">
396+
<div class="comment-header">
397397
<div class="comment-header-left tw-flex tw-items-center">
398398
{{if gt .Poster.ID 0}}
399399
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}">
@@ -633,8 +633,8 @@
633633
</div>
634634
{{if .Content}}
635635
<div class="timeline-item comment">
636-
<div class="content">
637-
<div class="ui top attached header comment-header-left tw-flex tw-items-center arrow-top">
636+
<div class="content comment-container">
637+
<div class="comment-header arrow-top">
638638
{{if gt .Poster.ID 0}}
639639
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}">
640640
{{ctx.AvatarUtils.Avatar .Poster 24}}
@@ -644,7 +644,7 @@
644644
{{ctx.Locale.Tr "action.review_dismissed_reason"}}
645645
</span>
646646
</div>
647-
<div class="ui attached segment">
647+
<div class="ui attached segment comment-body">
648648
<div class="render-content markup">
649649
{{if .RenderedContent}}
650650
{{.RenderedContent}}

templates/repo/issue/view_content/conversation.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
{{$createdSubStr:= DateUtils.TimeSince .CreatedUnix}}
5858
<div class="comment code-comment" id="{{.HashTag}}">
5959
<div class="content comment-container">
60-
<div class="header comment-header">
60+
<div class="comment-header">
6161
<div class="comment-header-left tw-flex tw-items-center">
6262
{{if not .OriginalAuthor}}
6363
<a class="avatar">

templates/repo/sub_menu.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{if and (not .HideRepoInfo) (not .IsBlame)}}
2-
<div class="ui segments repository-summary tw-mt-1 tw-mb-0">
2+
<div class="ui segments repository-summary tw-my-0">
33
<div class="ui segment sub-menu repository-menu">
44
{{if and (.Permission.CanRead ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo)}}
55
<a class="item muted {{if .PageIsCommits}}active{{end}}" href="{{.RepoLink}}/commits/{{.RefFullName.RefWebLinkPath}}">

web_src/css/repo.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,16 +1480,12 @@ td .commit-summary {
14801480
}
14811481

14821482
.comment-header {
1483-
border: none !important;
14841483
background: var(--color-box-header);
1485-
border-bottom: 1px solid var(--color-secondary) !important;
1486-
font-weight: var(--font-weight-normal) !important;
1487-
padding: 0.5rem 1rem;
1488-
margin: 0 !important;
1484+
border-bottom: 1px solid var(--color-secondary);
1485+
padding: 0 1rem;
14891486
position: relative;
14901487
color: var(--color-text);
14911488
min-height: 41px;
1492-
background-color: var(--color-box-header);
14931489
display: flex;
14941490
justify-content: space-between;
14951491
align-items: center;

web_src/css/repo/home.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.repo-grid-filelist-sidebar {
22
display: grid;
3-
grid-template-columns: auto 300px;
3+
grid-template-columns: auto 280px;
44
grid-template-rows: auto auto 1fr;
5+
gap: var(--page-spacing);
56
}
67

78
.repo-home-filelist {
@@ -13,13 +14,11 @@
1314
.repo-home-sidebar-top {
1415
grid-column: 2;
1516
grid-row: 1;
16-
padding-left: 1em;
1717
}
1818

1919
.repo-home-sidebar-bottom {
2020
grid-column: 2;
2121
grid-row: 2;
22-
padding-left: 1em;
2322
}
2423

2524
.repo-home-sidebar-bottom .flex-list > :first-child {

0 commit comments

Comments
 (0)