]> cat aescling's git repositories - mastodon.git/commitdiff
Improve quality of life for 4-inch phones
authorJessica Stokes <hello@jessicastokes.net>
Thu, 5 Jan 2017 01:25:48 +0000 (17:25 -0800)
committerJessica Stokes <hello@jessicastokes.net>
Thu, 5 Jan 2017 01:29:09 +0000 (17:29 -0800)
Removes extra UI margins < 360px, and allows the tab bar to scroll. Also slightly improves horizontal scrolling behaviour on desktop.

app/assets/javascripts/components/features/ui/components/tabs_bar.jsx
app/assets/stylesheets/components.scss

index 219979522b30d1f74a29b02c599f90db41d2aef2..499c9e287b56de2f1ff25cfcbd07d5fee0455246 100644 (file)
@@ -3,9 +3,8 @@ import { FormattedMessage } from 'react-intl';
 
 const outerStyle = {
   background: '#373b4a',
-  margin: '10px',
   flex: '0 0 auto',
-  marginBottom: '0'
+  overflowY: 'auto'
 };
 
 const tabStyle = {
index acfa85c6bdcd03c322ac45df5a01ea45f7de2340..2996fa92e449df9e8757e8d689f3482487adfb64 100644 (file)
 }
 
 .columns-area {
-  margin: 10px;
-  margin-left: 0;
   flex-direction: row;
 }
 
+@media screen and (min-width: 360px) {
+  .columns-area {
+    margin: 10px;
+  }
+}
+
 .column {
   width: 330px;
   position: relative;
 }
 
 .column, .drawer {
-  margin-left: 10px;
+  margin-left: 5px;
+  margin-right: 5px;
   flex: 0 0 auto;
   overflow: hidden;
 }
 
+.column:first-child, .drawer:first-child {
+  margin-left: 0;
+}
+
+.column:last-child, .drawer:last-child {
+  margin-right: 0;
+}
+
 @media screen and (max-width: 1024px) {
   .column, .drawer {
     width: 100%;
   }
 
   .columns-area {
-    margin: 10px;
     flex-direction: column;
   }
 }
   display: flex;
 }
 
+@media screen and (min-width: 360px) {
+  .tabs-bar {
+    margin: 10px;
+    margin-bottom: 0;
+  }
+}
+
 @media screen and (min-width: 1025px) {
   .tabs-bar {
     display: none;