瀏覽代碼

GH-1583 Loginpage improvements

sreenaths 4 年之前
父節點
當前提交
996483ea5d

File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/login.css


+ 3 - 2
desktop/core/src/desktop/static/desktop/less/login.less

@@ -81,7 +81,7 @@
     }
 
     .text-input {
-      padding: 1px 10px 1px 19px;
+      padding: 0;
       border: 1px solid @cui-gray-400;
       border-radius: 4px;
       margin-bottom: 20px;
@@ -117,7 +117,8 @@
     input[type='password'],
     input[type='text']:hover,
     input[type='password']:hover {
-      padding: 0;
+      padding: 1px 10px 1px 19px;
+      box-sizing: border-box;
       border: none;
       box-shadow: none;
       background: @cui-white;

+ 7 - 0
desktop/core/src/desktop/templates/login.mako

@@ -182,6 +182,13 @@ ${ commonheader(_("Welcome to Hue"), "login", user, request, "50px", True, True)
       }, 1000);
     });
 
+    $(document).keypress(function (event) {
+        var keycode = event.keyCode ? event.keyCode : event.which;
+        if(keycode == '13') {
+          $("form").submit();
+        }
+    });
+
     %if 'AllowAllBackend' in backend_names:
       $('#id_password').val('password');
     %endif

Some files were not shown because too many files changed in this diff