Skip to content

Commit e0848ee

Browse files
committed
fix
1 parent 30008fc commit e0848ee

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

templates/repo/view_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{/* use grid layout, still use the old ID because there are many other CSS styles depending on this ID */}}
22
<div id="repo-files-table" {{if .HasFilesWithoutLatestCommit}}hx-indicator="#repo-files-table .repo-file-cell.message" hx-trigger="load" hx-swap="morph" hx-post="{{.LastCommitLoaderURL}}"{{end}}>
3-
<div class="repo-file-line">
3+
<div class="repo-file-line repo-file-last-commit">
44
<div class="latest-commit">{{template "repo/latest_commit" .}}</div>
55
<div>{{if and .LatestCommit .LatestCommit.Committer}}{{DateUtils.TimeSince .LatestCommit.Committer.When}}{{end}}</div>
66
</div>

web_src/css/repo/clone.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/* only used by "repo/empty.tmpl" */
22
.clone-buttons-combo {
3+
display: flex;
4+
align-items: center;
35
flex: 1;
46
}
57

68
.clone-buttons-combo input {
79
border-left: none !important;
810
border-radius: 0 !important;
11+
height: 30px;
912
}
1013

1114
/* used by the clone-panel popup */

web_src/css/repo/home-file-list.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
padding: 6px 10px;
4545
}
4646

47+
#repo-files-table .repo-file-last-commit {
48+
background: var(--color-box-header);
49+
}
50+
4751
#repo-files-table .repo-file-cell.name {
4852
max-width: 300px;
4953
white-space: nowrap;

web_src/js/markup/math.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {displayError} from './common.ts';
33
function targetElement(el: Element) {
44
// The target element is either the current element if it has the
55
// `is-loading` class or the pre that contains it
6-
return el.classList.contains('is-loading') ? el : el.closest('pre');
6+
return el.classList.contains('is-loading') ? el : (el.closest('pre') ?? el.closest('code'));
77
}
88

99
export async function renderMath(): Promise<void> {

0 commit comments

Comments
 (0)