fix(plugins/activity): ellipsis for long commit messages (#788) [skip ci]

This commit is contained in:
Simon Lecoq
2022-01-18 23:44:25 +01:00
committed by GitHub
parent 5282a42b9f
commit 3bda8c55ab
3 changed files with 10 additions and 4 deletions

View File

@@ -136,8 +136,8 @@
<% } %> <% } %>
<% for (const commit of event.commits) { %> <% for (const commit of event.commits) { %>
<div class="commit"> <div class="commit">
<span class="sha">#<%= commit.sha %></span> <div class="sha">#<%= commit.sha %></div>
<span class="message"><%= commit.message %></span> <div class="message"><%= commit.message %></div>
</div> </div>
<% } %> <% } %>
</div> </div>

View File

@@ -783,8 +783,14 @@
margin-top: 4px; margin-top: 4px;
} }
.activity .commit {
display: flex;
align-items: center;
}
.activity .commit .sha { .activity .commit .sha {
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
margin-right: 4px;
} }
.activity .commit .message { .activity .commit .message {

View File

@@ -136,8 +136,8 @@
<% } %> <% } %>
<% for (const commit of event.commits) { %> <% for (const commit of event.commits) { %>
<div class="commit"> <div class="commit">
<span class="sha">#<%= commit.sha %></span> <div class="sha">#<%= commit.sha %></div>
<span class="message"><%= commit.message %></span> <div class="message"><%= commit.message %></div>
</div> </div>
<% } %> <% } %>
</div> </div>