Skip to content

Commit 8113008

Browse files
author
minjk-bl
committed
frame, subset optional input as black font
1 parent 6a7054d commit 8113008

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

css/common/frameEditor.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,16 @@
7474
.vp-fe-preview .CodeMirror-code .cm-string {
7575
background-color: rgba(246, 173, 85, 0.2);
7676
}
77+
78+
7779
.vp-fe-df-box {
7880
display: grid;
7981
grid-template-rows: 30px;
8082
grid-row-gap: 5px;
8183
}
8284
.vp-fe-df-box label {
8385
width: 80px;
86+
font-weight: bold;
8487
}
8588
.vp-fe #vp_feVariable {
8689
width: 153px;

css/common/subsetEditor.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
background-color: rgba(246, 173, 85, 0.2);
7676
}
7777
.vp-ds-label {
78-
color: #F37704;
7978
font-weight: bold;
8079
margin-left: 20px;
8180
}

src/api/functions/pandasCommand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _vp_get_columns_list(df):
3333
# value
3434
if type(c).__name__ == 'str':
3535
cInfo['value'] = "'{}'".format(c)
36-
elif type(r).__name__ == 'Timestamp':
36+
elif type(c).__name__ == 'Timestamp':
3737
cInfo['value'] = str(c)
3838
# category - iopub data rate limit issue...
3939
if str(df[c].dtype) == 'object':

src/common/vpFrameEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ define([
303303
page.appendFormatLine('<div class="{0}"><img src="{1}"/></div>', VP_FE_DF_REFRESH, '/nbextensions/visualpython/resource/refresh.svg');
304304
page.appendLine('</div>');
305305
page.appendLine('<div>');
306-
page.appendFormatLine('<label for="{0}" class="{1}">{2}</label>', 'vp_feReturn', 'vp-orange-text', 'Allocate to');
306+
page.appendFormatLine('<label for="{0}">{1}</label>', 'vp_feReturn', 'Allocate to');
307307
page.appendFormatLine('<input type="text" class="{0}" id="{1}" placeholder="{2}"/>', 'vp-input', 'vp_feReturn', 'Variable name');
308308
page.appendLine('</div>');
309309
page.appendLine('</div>');

src/common/vpSubsetEditor.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,10 @@ define([
248248

249249
// pandasObject
250250
popupTag.appendLine('<tr>');
251-
popupTag.appendFormatLine('<td><label class="{0}">{1}</label></td>'
252-
, VP_DS_LABEL, 'Variable');
251+
popupTag.appendFormatLine('<td><label class="{0} {1}">{2}</label></td>'
252+
, VP_DS_LABEL, 'vp-orange-text', 'Variable');
253253

254254
popupTag.appendLine('<td>');
255-
// pandasObject - suggestInputText
256-
// var vpDfSuggest = new vpSuggestInputText.vpSuggestInputText();
257-
// vpDfSuggest.addClass(VP_DS_PANDAS_OBJECT);
258-
// vpDfSuggest.addClass('vp-input');
259-
// vpDfSuggest.setPlaceholder('Select Object');
260-
// vpDfSuggest.setSuggestList(function() { return [] });
261-
// vpDfSuggest.setNormalFilter(false);
262-
// vpDfSuggest.setValue($(this.pageThis.wrapSelector('#' + this.targetId)).val());
263-
// popupTag.appendFormatLine('<td>{0}', vpDfSuggest.toTagString());
264255
popupTag.appendFormatLine('<div style="display:inline-block" class="{0}"><input class="{1} {2}"/></div>'
265256
, VP_DS_PANDAS_OBJECT_BOX, 'vp-input', VP_DS_PANDAS_OBJECT);
266257

@@ -270,8 +261,8 @@ define([
270261

271262
// subset type
272263
popupTag.appendLine('<tr>');
273-
popupTag.appendFormatLine('<td><label class="{0}">{1}</label></td>'
274-
, VP_DS_LABEL, 'Method');
264+
popupTag.appendFormatLine('<td><label class="{0} {1}">{2}</label></td>'
265+
, VP_DS_LABEL, 'vp-orange-text', 'Method');
275266
popupTag.appendLine('<td>');
276267
popupTag.appendLine(this.renderSubsetType(this.state.dataType));
277268

0 commit comments

Comments
 (0)