Skip to content

Commit 1a780f4

Browse files
committed
added file area buttons
1 parent 9ce2f4a commit 1a780f4

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

git-webui/release/share/git-webui/webui/css/git-webui.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,9 @@ body {
884884
padding-top: 15px;
885885
overflow-y: scroll;
886886
}
887+
#changedFilesContainer .commit-area .button-group .btn {
888+
margin-right: 5px;
889+
}
887890
#commit-explorer-view #commit-explorer-navigator-view .panel .panel-body {
888891
flex: 1 1 0px;
889892
-webkit-flex: 1 1 0px;

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,6 +2569,11 @@ webui.NewChangedFilesView = function(workspaceView) {
25692569
'<div class="form-group">' +
25702570
'<textarea class="form-control" id="commitMsgDetail" placeholder="Enter commit message details (optional)"></textarea>' +
25712571
'</div>' +
2572+
'<div class="button-group">' +
2573+
'<div class="btn btn-primary"> Commit </div>' +
2574+
'<div class="btn btn-secondary"> Stash </div>' +
2575+
'<div class="btn btn-danger"> Discard </div>' +
2576+
'</div>' +
25722577
'</div>' +
25732578
'</div>' +
25742579
'</div>'

git-webui/src/share/git-webui/webui/css/git-webui.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,12 @@ body {
857857
.commit-area {
858858
padding-top: 15px;
859859
overflow-y: scroll;
860+
861+
.button-group {
862+
.btn {
863+
margin-right: 5px;
864+
}
865+
}
860866
}
861867
}
862868

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,6 +2569,11 @@ webui.NewChangedFilesView = function(workspaceView) {
25692569
'<div class="form-group">' +
25702570
'<textarea class="form-control" id="commitMsgDetail" placeholder="Enter commit message details (optional)"></textarea>' +
25712571
'</div>' +
2572+
'<div class="button-group">' +
2573+
'<div class="btn btn-primary"> Commit </div>' +
2574+
'<div class="btn btn-secondary"> Stash </div>' +
2575+
'<div class="btn btn-danger"> Discard </div>' +
2576+
'</div>' +
25722577
'</div>' +
25732578
'</div>' +
25742579
'</div>'

0 commit comments

Comments
 (0)