File tree 4 files changed +21
-24
lines changed
4 files changed +21
-24
lines changed Original file line number Diff line number Diff line change 115
115
height : 50px ;
116
116
}
117
117
.vp-popup-button [data-type = "code" ] {
118
- position : absolute ;
119
- left : 15 px ;
120
- top : 9 px ;
118
+ float : left ;
119
+ margin-top : 9 px ;
120
+ margin-left : 10 px ;
121
121
}
122
122
.vp-popup-button [data-type = "data" ] {
123
- position : absolute ;
124
- left : 102 px ;
125
- top : 9 px ;
123
+ float : left ;
124
+ margin-top : 9 px ;
125
+ margin-left : 10 px ;
126
126
}
127
127
.vp-popup-button [data-type = "cancel" ] {
128
- position : absolute ;
128
+ float : right ;
129
129
background-color : # E4E4E4 ;
130
- top : 9px ;
131
- right : 106 px ;
130
+ margin- top: 9px ;
131
+ margin- right: 10 px ;
132
132
}
133
133
.vp-popup-runadd-box {
134
- position : absolute;
135
- top : 9px ;
136
- right : 15px ;
134
+ float : right;
137
135
width : fit-content;
138
136
height : 30px ;
139
137
background : # F38504 ;
140
138
border-radius : 2px ;
139
+ margin-top : 9px ;
140
+ margin-right : 10px ;
141
141
}
142
142
.vp-popup-button [data-type = "run" ] {
143
143
display : inline-block;
157
157
background : white;
158
158
border : 0.25px solid var (--border-gray-color );
159
159
position : absolute;
160
- bottom : 35 px ;
161
- right : 0 px ;
160
+ bottom : 45 px ;
161
+ right : 10 px ;
162
162
width : 120px ;
163
163
text-align : center;
164
164
line-height : 30px ;
172
172
background : var (--light-gray-color );
173
173
}
174
174
.vp-popup-save-button {
175
- position : absolute;
176
- top : 9px ;
177
- right : 15px ;
175
+ float : right;
178
176
height : 30px ;
177
+ width : 100px ;
178
+ margin-top : 9px ;
179
+ margin-right : 10px ;
179
180
}
180
181
/* writable codemirror style*/
181
182
/* Code Option Codemirror */
Original file line number Diff line number Diff line change 51
51
< button type ="button " class ="vp-button vp-popup-button " data-type ="code "> Code view</ button >
52
52
< button type ="button " class ="vp-button vp-popup-button " data-type ="data "> Data view</ button >
53
53
54
- < button type ="button " class ="vp-button vp-popup-button " data-type ="cancel "> Cancel</ button >
55
54
< div class ="vp-popup-runadd-box ">
56
55
< button type ="button " class ="vp-button activated vp-popup-button " data-type ="run " title ="Save to block & Run cell "> Run</ button >
57
56
< button type ="button " class ="vp-button activated vp-popup-button " data-type ="show-detail "> < img src ="/nbextensions/visualpython/img/arrow_short_up.svg "/> </ button >
60
59
< div class ="vp-popup-detail-button " data-type ="add " title ="Save to block & Add cell "> Code to cell</ div >
61
60
</ div >
62
61
</ div >
63
- < 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</ button >
62
+ < 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 >
63
+ < button type ="button " class ="vp-button vp-popup-button " data-type ="cancel "> Cancel</ button >
64
64
</ div >
65
65
</ div >
66
66
</ div >
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ define([
74
74
// run button
75
75
sbBlockMenu . appendLine ( '<div id="vp_block_menu_run" class="vp-block-menu-item">Run</div>' ) ;
76
76
// add button
77
- sbBlockMenu . appendLine ( '<div id="vp_block_menu_add" class="vp-block-menu-item">Add </div>' ) ;
77
+ sbBlockMenu . appendLine ( '<div id="vp_block_menu_add" class="vp-block-menu-item">Code to cell </div>' ) ;
78
78
// duplicate button
79
79
sbBlockMenu . appendLine ( '<div id="vp_block_menu_duplicate" class="vp-block-menu-item">Duplicate</div>' ) ;
80
80
// delete button
Original file line number Diff line number Diff line change @@ -435,10 +435,6 @@ define([
435
435
}
436
436
if ( ! dataview ) {
437
437
$ ( this . wrapSelector ( '.vp-popup-button[data-type="data"]' ) ) . hide ( ) ;
438
- } else {
439
- if ( ! codeview ) {
440
- $ ( this . wrapSelector ( '.vp-popup-button[data-type="data"]' ) ) . css ( { left : '15px' , top : '9px' } ) ;
441
- }
442
438
}
443
439
444
440
// footer
You can’t perform that action at this time.
0 commit comments