update design

This commit is contained in:
tdurieux
2026-05-05 00:36:42 +03:00
parent 49b124e188
commit dee406e2ea
7 changed files with 232 additions and 43 deletions
+11 -9
View File
@@ -372,15 +372,17 @@
</div>
<small ng-if="options.origin">Gist ID: {{details.source.gistId}}</small>
<small ng-if="options.username && details.gist.ownerLogin">By @{{anonymizeGistContent(details.gist.ownerLogin)}}</small>
<ul class="pr-comments mt-3">
<li class="pr-comment" ng-repeat="file in details.gist.files" ng-if="options.content">
<div class="pr-comment-head">
<strong ng-bind="anonymizeGistContent(file.filename)"></strong>
<span class="pr-comment-date" ng-if="file.language">{{file.language}}</span>
</div>
<pre class="pr-diff"><code ng-bind="anonymizeGistContent(file.content)"></code></pre>
</li>
</ul>
<div ng-if="options.content && previewGistFiles.length">
<ul class="pr-comments mt-3">
<li class="pr-comment" ng-repeat="file in previewGistFiles">
<div class="pr-comment-head">
<strong ng-bind="file.filename"></strong>
<span class="pr-comment-date" ng-if="file.language">{{file.language}}</span>
</div>
<gist-file file="file" terms="terms" options="options"></gist-file>
</li>
</ul>
</div>
<div ng-if="options.comments && details.gist.comments && details.gist.comments.length">
<h3 class="paper-section-eyebrow mt-3">Comments</h3>
<ul class="pr-comments">
+2 -2
View File
@@ -26,7 +26,7 @@
</div>
</header>
<nav class="paper-tabs" ng-if="details.files || details.comments" role="tablist">
<nav class="paper-tabs" ng-if="(details.files && details.files.length) || (details.comments && details.comments.length)" role="tablist">
<button
class="paper-tab"
ng-if="details.files"
@@ -65,7 +65,7 @@
<strong ng-bind="file.filename"></strong>
<span class="pr-comment-date" ng-if="file.language">{{file.language}}</span>
</div>
<pre class="pr-diff"><code ng-bind="file.content"></code></pre>
<gist-file file="file"></gist-file>
</li>
<li class="paper-table-empty" ng-if="!details.files.length">
<i class="fas fa-file"></i>