瀏覽代碼

HUE-7512 [home] Select json on the import documents modal is weirdly big

Enrico Berti 8 年之前
父節點
當前提交
1d1fdbaacd

+ 1 - 1
desktop/core/src/desktop/templates/common_import_export.mako

@@ -38,7 +38,7 @@ from django.utils.translation import ugettext as _
       <a class="btn btn-danger" data-bind="click: importDocument"> ${ _('Import') } </a>
     </div>
     <div class="fileupload fileupload-new" data-provides="fileupload">
-      <span class="btn btn-file" style="line-height: 29px">
+      <span class="btn btn-file">
         <span class="fileupload-new">${ _('Select json file') }</span>
         <span class="fileupload-exists">${ _('Change') }</span>
         <input type="file" accept=".json" id="fileData"/>

+ 1 - 1
desktop/core/src/desktop/templates/document_browser.mako

@@ -129,7 +129,7 @@ from desktop.views import _ko
             </div>
 
             <div class="fileupload fileupload-new" data-provides="fileupload" data-bind="visible: !uploading() && !uploadComplete()">
-              <span class="btn btn-file" style="line-height: 29px">
+              <span class="btn btn-file">
                 <span class="fileupload-new">${ _('Select json file') }</span>
                 <span class="fileupload-exists">${ _('Change') }</span>
                 <input id="importDocumentInput" type="file" name="documents" accept=".json" data-bind="value: selectedImportFile" />