Skip to content

Commit 4229cf6

Browse files
author
minjk-bl
committed
Fix bug and styles on Subset, Instance apps
1 parent 8377148 commit 4229cf6

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

css/component/popupComponent.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@
205205
.vp-popup-save-button {
206206
float: right;
207207
height: 30px;
208-
width: 100px;
209208
margin-top: 9px;
210209
margin-right: 10px;
211210
}

css/m_apps/instance.css

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,16 @@
4848
display: inline-block;
4949
width: calc(100% - 55px);
5050
height: 30px;
51-
border: 1px solid var(--gray-color);
51+
border: 0.25px solid var(--grid-line-color);
5252
border-radius: 3px;
53+
background-image: repeating-linear-gradient( to right, var(--grid-line-color) 0, var(--grid-line-color) 0.25px, transparent 1px, transparent 5px ), repeating-linear-gradient( to bottom, var(--grid-line-color) 0, var(--grid-line-color) 0.25px, transparent 1px, transparent 5px );
54+
background-color: white;
5355
overflow: hidden;
5456
}
55-
.vp-instance-box .CodeMirror.selected {
56-
display: inline-block;
57-
border: 1px solid silver;
58-
overflow: hidden;
57+
/* .vp-instance-box .CodeMirror.selected {
5958
width: 88%;
6059
height: 31px;
61-
background-image: repeating-linear-gradient( to right, var(--grid-line-color) 0, var(--grid-line-color) 0.25px, transparent 1px, transparent 5px ), repeating-linear-gradient( to bottom, var(--grid-line-color) 0, var(--grid-line-color) 0.25px, transparent 1px, transparent 5px );
62-
background-color: white;
63-
border: 0.25px solid #E4E4E4;
64-
}
60+
} */
6561
.vp-instance-box .CodeMirror-empty { outline: none; }
6662
.vp-instance-box .CodeMirror-empty.CodeMirror-focused { outline: none; }
6763
.vp-instance-box .CodeMirror pre.CodeMirror-placeholder { color: #999; }

html/component/popupComponent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<div class="vp-popup-detail-button" data-type="add" title="Save to block & Add cell">Code to cell</div>
9494
</div>
9595
</div>
96-
<button type="button" class="vp-button activated vp-popup-button vp-popup-save-button" data-type="save" title="Save to block" style="display:none;">Save to block</button>
96+
<button type="button" class="vp-button activated vp-popup-button vp-popup-save-button" data-type="save" title="Save to target" style="display:none;">OK</button>
9797
<button type="button" class="vp-button vp-popup-button" data-type="cancel">Cancel</button>
9898
</div>
9999
</div>

js/m_apps/Subset.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,9 @@ define([
10371037
// open popup
10381038
$(document).on('click', com_util.formatString('.{0}.{1}', VP_DS_BTN, this.uuid), function (event) {
10391039
if (!$(this).hasClass('disabled')) {
1040-
that.beforeOpen(that);
1040+
if (that.beforeOpen && typeof that.beforeOpen == 'function') {
1041+
that.beforeOpen(that);
1042+
}
10411043
that.open();
10421044
$(that.wrapSelector()).css({ 'z-index': 205 }); // move forward
10431045
}

0 commit comments

Comments
 (0)