浏览代码

fix(tile-view): hidden thumbnails on scroll

master
Hristo Terezov 5 年前
父节点
当前提交
145596ac6a
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 4
    3
      css/filmstrip/_tile_view.scss
  2. 3
    1
      react/features/filmstrip/functions.web.js

+ 4
- 3
css/filmstrip/_tile_view.scss 查看文件

@@ -15,8 +15,9 @@
15 15
         box-sizing: border-box;
16 16
         display: flex;
17 17
         flex-direction: column;
18
-        height: 100vh;
18
+        height: calc(100vh - 200px);
19 19
         width: 100vw;
20
+        margin: 100px 0px;
20 21
     }
21 22
 
22 23
     .filmstrip__videos .videocontainer {
@@ -77,9 +78,9 @@
77 78
         box-sizing: border-box;
78 79
         display: flex;
79 80
         flex-wrap: wrap;
80
-        height: 100vh;
81
+        margin-top: auto;
82
+        margin-bottom: auto;
81 83
         justify-content: center;
82
-        padding: 100px 0;
83 84
 
84 85
         .videocontainer {
85 86
             border: 0;

+ 3
- 1
react/features/filmstrip/functions.web.js 查看文件

@@ -104,8 +104,10 @@ export function calculateThumbnailSizeForTileView({
104 104
     // Minimum space to keep between the sides of the tiles and the sides
105 105
     // of the window.
106 106
     const sideMargins = 30 * 2;
107
+
108
+    const verticalMargins = visibleRows * 10;
107 109
     const viewWidth = clientWidth - sideMargins;
108
-    const viewHeight = clientHeight - topBottomPadding;
110
+    const viewHeight = clientHeight - topBottomPadding - verticalMargins;
109 111
     const initialWidth = viewWidth / columns;
110 112
     const aspectRatioHeight = initialWidth / TILE_ASPECT_RATIO;
111 113
     const height = Math.floor(Math.min(aspectRatioHeight, viewHeight / visibleRows));

正在加载...
取消
保存