Skip to content

Commit 983c4c3

Browse files
author
ando
authored
Merge pull request #44 from iamando/develop
feature: use select for commit type and fix ui margin
2 parents 6e65a1c + 132a2d3 commit 983c4c3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

media/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ body {
22
font-family: Arial, sans-serif;
33
padding: 20px;
44
}
5+
6+
select#commit-type {
7+
margin-bottom: 10px;
8+
}

src/providers/source-control.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,18 @@ class SourceControlProvider implements vscode.WebviewViewProvider {
7373
<title>Source Control</title>
7474
</head>
7575
<body>
76-
<div class="textarea-grow-wrap">
76+
<div>
77+
<select id="commit-type" name="commit-type">
78+
<option value="feature">Feature</option>
79+
<option value="bugfix">Bugfix</option>
80+
<option value="hotfix">Hotfix</option>
81+
<option value="chore">Chore</option>
82+
<option value="epic">Epic</option>
83+
<option value="design">Design</option>
84+
<option value="experiment">Experiment</option>
85+
<option value="documentation">Documentation</option>
86+
</select>
87+
7788
<textarea id="commit-input" name="commit-message" placeholder="Commit message" rows="1" maxlength="124"></textarea>
7889
</div>
7990

0 commit comments

Comments
 (0)