]> cat aescling's git repositories - mastodon.git/commitdiff
Minor scrollable list fixes (#9551)
authorThibG <thib@sitedethib.com>
Mon, 17 Dec 2018 16:02:59 +0000 (17:02 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 17 Dec 2018 16:02:59 +0000 (17:02 +0100)
* Make sure loading indicator has enough vertical space

* Respect reduce_motion setting for loading indicator

app/javascript/mastodon/features/account_gallery/index.js
app/javascript/styles/mastodon/components.scss

index 0d66868ed89b0453cd2565b3a20e78f5fd4df860..96051818b89665cb45873e728913b97dd38f7629 100644 (file)
@@ -103,7 +103,7 @@ class AccountGallery extends ImmutablePureComponent {
       );
     }
 
-    if (hasMore) {
+    if (hasMore && !(isLoading && medias.size === 0)) {
       loadOlder = <LoadMore visible={!isLoading} onClick={this.handleLoadOlder} />;
     }
 
index d2b3baaf05df715956186a08517129b4c2bcd266..5954722638233f85870e66103301b578f9424ec6 100644 (file)
@@ -2153,6 +2153,7 @@ a.account__display-name {
   &__append {
     flex: 1 1 auto;
     position: relative;
+    min-height: 120px;
   }
 }
 
@@ -2946,7 +2947,6 @@ a.status-card.compact:hover {
     transform: translateX(-50%);
     margin: 82px 0 0 50%;
     white-space: nowrap;
-    animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
   }
 }
 
@@ -2955,11 +2955,20 @@ a.status-card.compact:hover {
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
-  width: 0;
-  height: 0;
+  width: 42px;
+  height: 42px;
   box-sizing: border-box;
+  background-color: transparent;
   border: 0 solid lighten($ui-base-color, 26%);
+  border-width: 6px;
   border-radius: 50%;
+}
+
+.no-reduce-motion .loading-indicator span {
+  animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
+}
+
+.no-reduce-motion .loading-indicator__figure {
   animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
 }