From f59cbe0a19cfcc7d67164c9208db362a188cc5d3 Mon Sep 17 00:00:00 2001 From: Scott Chacon Date: Sun, 23 Jul 2023 08:59:07 +0200 Subject: [PATCH] Update style and accessibility attributes in commit component Updated several class attribute values within the commit component to better control element aspect ratios. This was achieved by changing the flex classes. The reference to commit.description has also been modified to display only the first 100 characters, earlier it used to display 200 characters. Key changes include: - The use of "shrink-0" versus the previous "w-24" and "w-32" values to prevent those elements from shrinking. - The reduction of commit description substring length. - Addition of "rel=noreferrer" to the commit url link for improved security and performance. --- src/routes/repo/[projectId]/BottomPanel.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/repo/[projectId]/BottomPanel.svelte b/src/routes/repo/[projectId]/BottomPanel.svelte index 260144876..8e1b36046 100644 --- a/src/routes/repo/[projectId]/BottomPanel.svelte +++ b/src/routes/repo/[projectId]/BottomPanel.svelte @@ -48,8 +48,8 @@
{#each target.recentCommits as commit}
-
{formatDistanceToNow(commit.createdAt)} ago
-
+
{formatDistanceToNow(commit.createdAt)} ago
+
{commit.author.name}
-
{commit.description.substring(0, 200)}
+
{commit.description.substring(0, 100)}