Skip to content

Commit 9457eed

Browse files
committed
style: make GitHub logo smaller
Reduced logo size from 30x30 to 18x18 and adjusted opacity
1 parent 6f26900 commit 9457eed

File tree

2 files changed

+6
-187
lines changed

2 files changed

+6
-187
lines changed

assets/js/gh.js

Lines changed: 2 additions & 183 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/github-contribution-graph/src/core/renderer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ export function createThumbnail(): HTMLDivElement {
167167
// GitHub logo SVG
168168
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
169169
svg.setAttribute('viewBox', '0 0 98 96');
170-
svg.setAttribute('width', '30');
171-
svg.setAttribute('height', '30');
172-
svg.style.marginTop = '15px';
173-
svg.style.opacity = '0.6';
170+
svg.setAttribute('width', '18');
171+
svg.setAttribute('height', '18');
172+
svg.style.marginTop = '10px';
173+
svg.style.opacity = '0.5';
174174
svg.style.fill = 'var(--gh-text-default-color, #333)';
175175

176176
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');

0 commit comments

Comments
 (0)