[Notice] Announcing the End of Demo Server [Read me]
DeokHong Kim (a.k.a insanehong) DeokHong Kim (a.k.a insanehong) 2013-10-22
notification:fixed default line height and add ellipsis string
@82bc35ba7bad7aa8f4d98354adfac3aab22007f6
app/assets/stylesheets/less/_page.less
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
@@ -1090,11 +1090,8 @@
                                 color:#666;
                                 font-weight:bold;
                                 &:hover {color:@link-hover-color;}
-
                             }
-                            
                         }
-
 
                         .message-wrap {
                             margin-top:3px;
@@ -1102,19 +1099,24 @@
                             color:#888;
                             padding-left:12px;   
                             overflow:hidden;
-                            max-height:40px;
+                            line-height:20px;    
                             .transition(all 0.3s ease);
+                            min-height:20px;
 
                             .message {
                                 word-break : break-all;
+                                line-height:20px;    
                             }
-                        }
 
-                        .learn-more {
-                            margin-top:5px;
-                            font-size:13px;
-                            color:#bbb;
-                            padding-left:50px;
+                            &.nowrap {
+                                min-height:20px;
+                                height:20px;
+                                .message {
+                                    text-overflow: ellipsis; 
+                                    white-space: nowrap; 
+                                    overflow: hidden;
+                                }
+                            }
                         }
                     }
                 }
app/views/index/index.scala.html
--- app/views/index/index.scala.html
+++ app/views/index/index.scala.html
@@ -81,9 +81,8 @@
                 welMessage.toggleClass('nowrap');
 
                 nHeight = (welMessage.hasClass('nowrap')) ? '' : $(welMessage).find('.message').height();
-
-                $(welMessage).css('max-height',nHeight);
-               
+                
+                $(welMessage).css('min-height',nHeight);               
             });
            
         });
Add a comment
List