Skip to content

Commit d81a470

Browse files
Copilotalexr00
andcommitted
Update empty commit webview styling to match design
- Added SVG document icon above the message - Split message into title and subtitle with different styling - Title: "No changes to show." in regular foreground color - Subtitle: "This commit has no content." in muted description color - Adjusted spacing and font sizes to match GitHub.com design Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent c1e735f commit d81a470

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

src/github/emptyCommitWebview.ts

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,38 @@ function getEmptyCommitHtml(): string {
4545
.container {
4646
text-align: center;
4747
padding: 2rem;
48+
max-width: 600px;
4849
}
49-
.message {
50-
font-size: 1.2rem;
51-
line-height: 1.6;
50+
.icon {
51+
margin-bottom: 1.5rem;
52+
opacity: 0.6;
53+
}
54+
.icon svg {
55+
width: 64px;
56+
height: 64px;
57+
fill: currentColor;
58+
}
59+
.title {
60+
font-size: 1.25rem;
61+
font-weight: 400;
62+
margin-bottom: 0.5rem;
63+
color: var(--vscode-foreground);
64+
}
65+
.subtitle {
66+
font-size: 0.95rem;
5267
color: var(--vscode-descriptionForeground);
5368
}
5469
</style>
5570
</head>
5671
<body>
5772
<div class="container">
58-
<div class="message">
59-
No changes to show.<br>
60-
This commit has no content.
73+
<div class="icon">
74+
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
75+
<path d="M13.5 0h-12C.67 0 0 .67 0 1.5v13c0 .83.67 1.5 1.5 1.5h12c.83 0 1.5-.67 1.5-1.5v-13c0-.83-.67-1.5-1.5-1.5zM13 14H2V2h11v12zM4 7h7v1H4V7zm0 2h7v1H4V9zm0 2h7v1H4v-1zM4 5h7v1H4V5z"/>
76+
</svg>
6177
</div>
78+
<div class="title">No changes to show.</div>
79+
<div class="subtitle">This commit has no content.</div>
6280
</div>
6381
</body>
6482
</html>`;

0 commit comments

Comments
 (0)