UX: better handling of width and overflow for login/signup

UX: better handling of width and overflow for login/signup

diff --git a/app/assets/stylesheets/desktop/login.scss b/app/assets/stylesheets/desktop/login.scss
index 09b512b..5bcb612 100644
--- a/app/assets/stylesheets/desktop/login.scss
+++ b/app/assets/stylesheets/desktop/login.scss
@@ -53,9 +53,23 @@
       padding: 5px 0 0 0;
     }
   }
-
-  tr.input label {
+  .tip,
+  td label {
+    display: block;
+    overflow: hidden;
+    word-wrap: break-word;
     margin-bottom: 0;
+    max-width: 280px;
+    @media screen and (min-width: 500px) {
+      max-width: 400px;
+    }
+  }
+}
+
+.has-alt-auth {
+  .tip,
+  td label {
+    max-width: 250px;
   }
 }
 
@@ -129,7 +143,6 @@
       padding: 15px;
       margin-bottom: 5px;
       max-height: 475px;
-      max-width: 350px;
       @media screen and (max-height: 768px) {
         max-height: 60vh;
       }
@@ -220,9 +233,10 @@
     }
     &:not(:empty),
     &:empty + td {
-      display: block;
       min-height: 1.75em;
-      max-width: 240px;
+      &.bad .svg-icon {
+        vertical-align: middle;
+      }
     }
   }
 }
diff --git a/app/assets/stylesheets/mobile/login.scss b/app/assets/stylesheets/mobile/login.scss
index b8930a4..47efeb4 100644
--- a/app/assets/stylesheets/mobile/login.scss
+++ b/app/assets/stylesheets/mobile/login.scss
@@ -50,6 +50,13 @@
       margin-top: 0.75em;
     }
 
+    td label {
+      max-width: 280px;
+      display: block;
+      overflow: hidden;
+      word-wrap: break-word;
+    }
+
     &:not(.instructions) td {
       padding: 2px 0 0 0;
     }

GitHub sha: e3e681eb

2 Likes

This commit has been mentioned on Discourse Meta. There might be relevant details there: