From 1b16e5bcfd6513a9e5d3a1454e1937b3db166ae0 Mon Sep 17 00:00:00 2001 From: iamyaash Date: Thu, 29 May 2025 13:25:13 +0530 Subject: [PATCH] refactor: added class names to the divs and made a separate grid design for mobile layout - added/modified the class names of both date & button in commits_list - created a new vertical layout for mobile (3rows, 212cols-per-row) --- templates/repo/pulls/commits_list.tmpl | 8 +++--- web_src/css/repo.css | 36 +++++++++++++++++++++----- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/templates/repo/pulls/commits_list.tmpl b/templates/repo/pulls/commits_list.tmpl index 96c09562fd..74e7d9410e 100644 --- a/templates/repo/pulls/commits_list.tmpl +++ b/templates/repo/pulls/commits_list.tmpl @@ -31,7 +31,7 @@ -
+
{{$commitLink:= printf "%s/commit/%s" $commitRepoLink (PathEscape .ID.String)}}
{{RenderCommitMessageLinkSubject $.Context .Message $commitLink ($.Repository.ComposeMetas ctx)}}
{{if IsMultilineCommitMessage .Message}} @@ -71,12 +71,12 @@
-
+
{{if .Committer}}{{DateUtils.TimeSince .Committer.When}}{{else}}{{DateUtils.TimeSince .Author.When}}{{end}}
-
- +
+ {{if not $.PageIsWiki}} {{if $.FileName}}