Skip to content

Commit 8365b07

Browse files
committed
some ui updated
1 parent 01b8647 commit 8365b07

4 files changed

Lines changed: 40 additions & 12 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20160119063435
2+
# Build: 20160119072032
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎index.html‎

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

‎static/app/resources/css/style.css‎

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ html,body{
144144
.modal--fix{
145145
max-height: 98%;
146146
}
147+
.modal-header .close{
148+
padding-left: 1.25rem;
149+
}
147150
.modal--fix .modal-dialog,
148151
.modal--fix .modal-content{
149152
height: 100%;
@@ -226,29 +229,35 @@ html,body{
226229
text-align: center;
227230
}
228231
.bookmark-modal .modal-body>.hd>.empty .top{
229-
margin: 2em;
232+
margin: 2rem;
230233
}
231234
.bookmark-modal .modal-body>.hd>.empty .tip{
232235
text-align: left;
233236
}
234-
.bookmark-modal .repo-item .card-footer {
235-
padding: .3rem 1.25rem;
237+
.bookmark-modal .card-block{
238+
padding: .5rem;
236239
}
237-
.bookmark-modal .repo-item_bd{
238-
word-break: break-word;
239-
word-wrap: break-word;
240+
.bookmark-modal .card-header {
241+
padding: .5rem;
242+
}
243+
.bookmark-modal .card-footer {
244+
padding: 0 0 .2rem 0;
245+
}
246+
.bookmark-modal .repo-list {
247+
padding-bottom: 0;
240248
}
241249
.bookmark-modal .repo-group-item>.hd .search{
242250
display: none;
243251
cursor: pointer;
244252
max-width: 70%;
253+
margin-top: -0.25rem;
245254
}
246255
.bookmark-modal .repo-group-item[data-id="0"]>.hd .search{
247256
display: block;
248257
}
249258
.bookmark-modal .repo-group-item .hd .ctrl>div{
250259
display: inline-block;
251-
padding-left: .4rem;
260+
padding: 0 .4rem;
252261
cursor: pointer;
253262
}
254263
.bookmark-modal .repo-group-item[data-id="0"]>.hd .ctrl,
@@ -258,6 +267,9 @@ html,body{
258267
.bookmark-user-modal .user-item:first-child{
259268
margin-top: 1rem;
260269
}
270+
.bookmark-user-modal .user-list .ctrl{
271+
margin-top: -0.25rem;
272+
}
261273

262274
body.mobile .variable-btns__copy{
263275
display: none !important;

‎static/app/src/App.js‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,17 +879,23 @@ $(function () {
879879
});
880880
els.bookmarkModalContentHd.keypress(function (e) {
881881
if (e.which == 13) {
882-
beforeAddBookmarkUser();
882+
beforeAddBookmarkUser(els.bookmarkModalContentHd);
883883
return false;
884884
}
885885
});
886886
els.bookmarkUserModal.keypress(function (e) {
887887
if (e.which == 13) {
888-
beforeAddBookmarkUser(els.bookmarkModalContentHd);
888+
beforeAddBookmarkUser();
889889
return false;
890890
}
891891
});
892892
els.bookmarkGroupModal.on('click', '.submit', beforeEditBookmarkGroup);
893+
els.bookmarkGroupModal.keypress(function (e) {
894+
if (e.which == 13) {
895+
beforeEditBookmarkGroup();
896+
return false;
897+
}
898+
});
893899
els.bookmarkModalContent.on('click', '.repo-group-item>.hd .ctrl .del', beforeDelBookmarkGroup);
894900
els.bookmarkModalContent.on('click', '.repo-group-item>.hd .ctrl .edit', function(){
895901
showBookmarkGroupModal(this.dataset.id,this.dataset.name);
@@ -941,6 +947,10 @@ $(function () {
941947
els.bookmarkUserModal.modal('show');
942948
}
943949

950+
function hideBookmarkUserModal() {
951+
els.bookmarkUserModal.modal('hide');
952+
}
953+
944954
function showBookmarkGroupModal(id,name) {
945955
hideBookmark();
946956
els.bookmarkGroupModal.modal('show');
@@ -951,6 +961,10 @@ $(function () {
951961
}
952962
}
953963

964+
function hideBookmarkGroupModal() {
965+
els.bookmarkGroupModal.modal('hide');
966+
}
967+
954968
function onLocationHashChanged(e) {
955969
e && e.preventDefault();
956970
var hash = HashHandler.get();
@@ -1434,6 +1448,7 @@ $(function () {
14341448
renderAnalytics('bk&u=' + val);
14351449
}
14361450
inputEl.val('');
1451+
hideBookmarkUserModal();
14371452
}
14381453

14391454
function beforeEditBookmarkGroup() {
@@ -1449,6 +1464,7 @@ $(function () {
14491464
}
14501465
}
14511466
els.bookmarkGroupModalInput.val('');
1467+
hideBookmarkGroupModal();
14521468
}
14531469

14541470
function beforeDelBookmarkGroup() {

0 commit comments

Comments
 (0)