1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

move width specification of upload button to scss

This commit is contained in:
Hiroyasu Nishiyama 2020-10-08 09:07:11 +09:00
parent 516e6430eb
commit 96ab508c91
2 changed files with 5 additions and 2 deletions

View File

@ -882,7 +882,7 @@ RED.palette.editor = (function() {
if (RED.settings.theme('palette.upload') !== false) {
var uploadSpan = $('<span class="button-group">').prependTo(toolBar);
var uploadButton = $('<button type="button" class="red-ui-sidebar-header-button red-ui-palette-editor-upload-button"><label><i class="fa fa-upload"></i><form id="red-ui-palette-editor-upload-form" enctype="multipart/form-data" style="width: 0px;"><input name="tarball" type="file" accept=".tgz"></label></button>').appendTo(uploadSpan);
var uploadButton = $('<button type="button" class="red-ui-sidebar-header-button red-ui-palette-editor-upload-button"><label><i class="fa fa-upload"></i><form id="red-ui-palette-editor-upload-form" enctype="multipart/form-data"><input name="tarball" type="file" accept=".tgz"></label></button>').appendTo(uploadSpan);
var uploadInput = uploadButton.find('input[type="file"]');
uploadInput.on("change", function(evt) {

View File

@ -253,6 +253,9 @@ button.red-ui-palette-editor-upload-button {
min-width: 0;
padding: 2px 8px;
}
form {
width: 0;
}
}
.red-ui-palette-editor-upload {
display: none;
@ -275,4 +278,4 @@ button.red-ui-palette-editor-upload-button {
button {
margin-left: 10px;
}
}
}