Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcbcf98a

Browse files
author
minjk-bl
committed
Change button label from 'Save' to 'Save to block'
1 parentafdf135 commitcbcf98a

File tree

4 files changed

+21
-24
lines changed

4 files changed

+21
-24
lines changed

‎css/popupComponent.css‎

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,29 +115,29 @@
115115
height:50px;
116116
}
117117
.vp-popup-button[data-type="code"] {
118-
position: absolute;
119-
left:15px;
120-
top:9px;
118+
float: left;
119+
margin-top:9px;
120+
margin-left:10px;
121121
}
122122
.vp-popup-button[data-type="data"] {
123-
position: absolute;
124-
left:102px;
125-
top:9px;
123+
float: left;
124+
margin-top:9px;
125+
margin-left:10px;
126126
}
127127
.vp-popup-button[data-type="cancel"] {
128-
position: absolute;
128+
float: right;
129129
background-color:#E4E4E4;
130-
top:9px;
131-
right:106px;
130+
margin-top:9px;
131+
margin-right:10px;
132132
}
133133
.vp-popup-runadd-box {
134-
position: absolute;
135-
top:9px;
136-
right:15px;
134+
float: right;
137135
width: fit-content;
138136
height:30px;
139137
background:#F38504;
140138
border-radius:2px;
139+
margin-top:9px;
140+
margin-right:10px;
141141
}
142142
.vp-popup-button[data-type="run"] {
143143
display: inline-block;
@@ -157,8 +157,8 @@
157157
background: white;
158158
border:0.25px solidvar(--border-gray-color);
159159
position: absolute;
160-
bottom:35px;
161-
right:0px;
160+
bottom:45px;
161+
right:10px;
162162
width:120px;
163163
text-align: center;
164164
line-height:30px;
@@ -172,10 +172,11 @@
172172
background:var(--light-gray-color);
173173
}
174174
.vp-popup-save-button {
175-
position: absolute;
176-
top:9px;
177-
right:15px;
175+
float: right;
178176
height:30px;
177+
width:100px;
178+
margin-top:9px;
179+
margin-right:10px;
179180
}
180181
/* writable codemirror style*/
181182
/* Code Option Codemirror */

‎html/popupComponent.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
<buttontype="button"class="vp-button vp-popup-button"data-type="code">Code view</button>
5252
<buttontype="button"class="vp-button vp-popup-button"data-type="data">Data view</button>
5353

54-
<buttontype="button"class="vp-button vp-popup-button"data-type="cancel">Cancel</button>
5554
<divclass="vp-popup-runadd-box">
5655
<buttontype="button"class="vp-button activated vp-popup-button"data-type="run"title="Save to block & Run cell">Run</button>
5756
<buttontype="button"class="vp-button activated vp-popup-button"data-type="show-detail"><imgsrc="/nbextensions/visualpython/img/arrow_short_up.svg"/></button>
@@ -60,7 +59,8 @@
6059
<divclass="vp-popup-detail-button"data-type="add"title="Save to block & Add cell">Code to cell</div>
6160
</div>
6261
</div>
63-
<buttontype="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+
<buttontype="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+
<buttontype="button"class="vp-button vp-popup-button"data-type="cancel">Cancel</button>
6464
</div>
6565
</div>
6666
</div>

‎js/board/BlockMenu.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ define([
7474
// run button
7575
sbBlockMenu.appendLine('<div id="vp_block_menu_run" class="vp-block-menu-item">Run</div>');
7676
// add button
77-
sbBlockMenu.appendLine('<div>Add</div>');
77+
sbBlockMenu.appendLine('<div>Code to cell</div>');
7878
// duplicate button
7979
sbBlockMenu.appendLine('<div id="vp_block_menu_duplicate" class="vp-block-menu-item">Duplicate</div>');
8080
// delete button

‎js/com/component/PopupComponent.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,6 @@ define([
435435
}
436436
if(!dataview){
437437
$(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-
}
442438
}
443439

444440
// footer

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp