mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
FIX: github onebox styles for commits (#25098)
This commit is contained in:
@ -480,6 +480,11 @@ pre.onebox code {
|
|||||||
.github-info-container {
|
.github-info-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
> span {
|
||||||
|
// TODO: remove in a few months
|
||||||
|
// replaced by .github-info in new commit oneboxes
|
||||||
|
grid-area: info;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.github-info {
|
.github-info {
|
||||||
|
@ -29,15 +29,17 @@
|
|||||||
<a href="{{link}}" target="_blank" rel="noopener">{{commit.message.lines.first}}</a>
|
<a href="{{link}}" target="_blank" rel="noopener">{{commit.message.lines.first}}</a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<span>
|
<div class="github-info">
|
||||||
Commit by
|
<span>
|
||||||
<a href="{{author.html_url}}" target="_blank" rel="noopener">
|
Commit by
|
||||||
<img alt="{{author.login}}" src="{{author.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
|
<a href="{{author.html_url}}" target="_blank" rel="noopener">
|
||||||
{{author.login}}
|
<img alt="{{author.login}}" src="{{author.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
|
||||||
</a>
|
{{author.login}}
|
||||||
in
|
</a>
|
||||||
<a href="{{link}}" target="_blank" rel="noopener">{{title}}</a>
|
in
|
||||||
</span>
|
<a href="{{link}}" target="_blank" rel="noopener">{{title}}</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
{{/commit}}
|
{{/commit}}
|
||||||
|
|
||||||
{{#comment}}
|
{{#comment}}
|
||||||
|
Reference in New Issue
Block a user